Separator

No dedicated component

There is no dedicated Separator component in Basecoat.

Basecoat
Tailwind components for any web stack

A set of components you can drop into any HTML page, styled like shadcn/ui.

Usage

Include CSS

Import Tailwind and one full Basecoat style bundle.

@import "tailwindcss";
@import "basecoat-css/vega.css";

Or import only the base CSS, which styles horizontal and vertical separators.

@import "tailwindcss";
@import "basecoat-css/base.css";

Separator is a native <hr> and has no dedicated component CSS file.

Using CDN or bundler imports? See the Installation page.

Add your separator HTML

Use an <hr> with role="separator". It renders as a 1px line in the border color, matching shadcn/ui’s Separator.

<hr role="separator" />

If the separator is purely decorative, use role="none" instead so assistive technologies skip it. This is what shadcn/ui’s decorative prop does.

<hr role="none" />

Examples

Vertical

Add aria-orientation="vertical" for a vertical separator. It fills the height of its row.

Blog

Docs

Source

Vertical separators between menu items with descriptions.

SettingsManage preferences

AccountProfile & security

List

Horizontal separators between list items.

Item 1
Value 1

Item 2
Value 2

Item 3
Value 3

RTL

Separators follow document direction. Vertical separators use a logical inline-start border, so they need no changes.

Basecoat
مكونات Tailwind لأي بيئة ويب

مجموعة من المكونات يمكنك إضافتها إلى أي صفحة HTML، بتصميم مثل shadcn/ui.