content

Tailwind CSS Custom Scrollbar

Differently designed scrollbar as alternative to the browser's default scrollbar.

Class Name
Type
Description
vertical-scrollbarComponentAdds vertical scrollbar style.
horizontal-scrollbarComponentAdds horizontal scrollbar style.
rounded-scrollbarModifierAdds rounded style.

Use .vertical-scrollbar component class to add customize Scrollbar along y-axis.

Style the scrollbar with this tailwind modifier [&::-webkit-scrollbar]:, [&::-webkit-scrollbar-thumb]:, and [&::-webkit-scrollbar-track]:.

Use .horizontal-scrollbar component class to add customize Scrollbar along x-axis.

Use .rounded-scrollbar class with .vertical-scrollbar or .horizontal-scrollbar to make it rounded scrollbar.