Tailwind CSS Join Components
The Join component is used to group multiple elements together into a single cohesive unit. It is perfect for combining buttons, inputs, and labels without gaps between them. You can create segmented controls or search bars. It handles border radius automatically to maintain a clean appearance.
Basic Usage
Join Directions
Control the layout orientation of grouped items using directional utility classes.
Horizontal Join
The default layout for side-by-side controls and button groups.
Vertical Join
Stacks join items vertically, ideal for sidebars or mobile-specific navigation.
Responsive Join
Automatically switch from a vertical stack on mobile to a horizontal row on desktop using .join-y and .lg:join-x.
Grouped Inputs
Seamlessly combine text inputs with buttons or icons to create professional search bars and subscription forms.
Radio Button Groups
Turn standard radio inputs into a segmented control or toggle group by wrapping them in a Join container with button classes.
Grouped Cards
Card Title
The Card component is a versatile container for combining related information, such as images, titles, and actions, into a single, visually appealing unit.
Card Title
The Card component is a versatile container for combining related information, such as images, titles, and actions, into a single, visually appealing unit.