content
Tailwind CSS
Divider A divider is employed to separate content either vertically or horizontally.
Utilize the component class divider
to create vertical content divisions. Apply the modifier class divider-{semantic-color}
to specify different colors for the dividers.
Copy
toggleRTL($refs.previewFrame), 100);
}" class="size-9.5 border-neutral/10 rounded-btn text-base-content hover:bg-neutral/[0.03] flex items-center justify-center gap-2 border max-sm:hidden">
Use the responsive class divider-horizontal
with the component class divider
to create horizontal content divisions.
Copy
toggleRTL($refs.previewFrame), 100);
}" class="size-9.5 border-neutral/10 rounded-btn text-base-content hover:bg-neutral/[0.03] flex items-center justify-center gap-2 border max-sm:hidden">
Add text or icon within the divider markup to show it within the horizontal divider line.
Copy
toggleRTL($refs.previewFrame), 100);
}" class="size-9.5 border-neutral/10 rounded-btn text-base-content hover:bg-neutral/[0.03] flex items-center justify-center gap-2 border max-sm:hidden">
Insert icons or text into the divider markup following the examples below to display them within the divider line.
Copy
toggleRTL($refs.previewFrame), 100);
}" class="size-9.5 border-neutral/10 rounded-btn text-base-content hover:bg-neutral/[0.03] flex items-center justify-center gap-2 border max-sm:hidden">
The following example represents the default style for the divider line.
Copy
toggleRTL($refs.previewFrame), 100);
}" class="size-9.5 border-neutral/10 rounded-btn text-base-content hover:bg-neutral/[0.03] flex items-center justify-center gap-2 border max-sm:hidden">
Apply the modifier class divider-dotted
to display the divider line in a dotted pattern.
Copy
toggleRTL($refs.previewFrame), 100);
}" class="size-9.5 border-neutral/10 rounded-btn text-base-content hover:bg-neutral/[0.03] flex items-center justify-center gap-2 border max-sm:hidden">
Apply the modifier class divider-dashed
to display the divider line in a dashed pattern.
Copy
toggleRTL($refs.previewFrame), 100);
}" class="size-9.5 border-neutral/10 rounded-btn text-base-content hover:bg-neutral/[0.03] flex items-center justify-center gap-2 border max-sm:hidden">
Utilize the TailwindCSS state classes after:
and before:
along with the border classes border-t-*
for vertical dividers and border-e-*
for horizontal dividers to customize their thickness.
Copy
toggleRTL($refs.previewFrame), 100);
}" class="size-9.5 border-neutral/10 rounded-btn text-base-content hover:bg-neutral/[0.03] flex items-center justify-center gap-2 border max-sm:hidden">
Use the responsive classes divider-start
and divider-end
to position content at the start and end positions, respectively. By default, the content is centered.
Copy
toggleRTL($refs.previewFrame), 100);
}" class="size-9.5 border-neutral/10 rounded-btn text-base-content hover:bg-neutral/[0.03] flex items-center justify-center gap-2 border max-sm:hidden">
Use the responsive classes divider-start
and divider-end
to position content at the start and end positions in horizontal divider, respectively. By default, the content is centered.
Copy
toggleRTL($refs.previewFrame), 100);
}" class="size-9.5 border-neutral/10 rounded-btn text-base-content hover:bg-neutral/[0.03] flex items-center justify-center gap-2 border max-sm:hidden">
The responsive dividers adapt according to breakpoints.
Use TailwindCSS classes for responsive design , such as sm:
, md:
, lg:
, xl:
, and 2xl:
, along with the responsive class divider-horizontal
, to switch the divider alignment to horizontal at specific breakpoints.
Copy
toggleRTL($refs.previewFrame), 100);
}" class="size-9.5 border-neutral/10 rounded-btn text-base-content hover:bg-neutral/[0.03] flex items-center justify-center gap-2 border max-sm:hidden">
Utilize responsive breakpoint classes alongside the responsive class divider-vertical
to adjust the divider alignment to vertical at specific breakpoints.
Copy
toggleRTL($refs.previewFrame), 100);
}" class="size-9.5 border-neutral/10 rounded-btn text-base-content hover:bg-neutral/[0.03] flex items-center justify-center gap-2 border max-sm:hidden">
Use the example below to implement buttons with a responsive horizontal divider.
Copy
toggleRTL($refs.previewFrame), 100);
}" class="size-9.5 border-neutral/10 rounded-btn text-base-content hover:bg-neutral/[0.03] flex items-center justify-center gap-2 border max-sm:hidden">
Sign in with Facebook
Sign in with Twitter
Use the example below to implement buttons with a vertical divider.
Copy
toggleRTL($refs.previewFrame), 100);
}" class="size-9.5 border-neutral/10 rounded-btn text-base-content hover:bg-neutral/[0.03] flex items-center justify-center gap-2 border max-sm:hidden">
Sign in with Facebook
Sign in with Twitter