Mục lục tham khảo

Thành phần

Separator

Ink rule on Base UI Separator: hair (1px) or heavy (3px), horizontal or vertical.

Nội dung tham khảo viết bằng tiếng Anh; mục “Vietnamese” có ví dụ tiếng Việt.

Xem trước

Eloquent UI

Components for a newspaper of record.

DocsRegistrySource

Install

bash

npx shadcn add @eloquent/separator

Usage

tsx

import { Separator } from "@/components/ui/separator";

<Separator />
<Separator variant="heavy" />
<Separator orientation="vertical" />

States

Hair (1px)
Heavy (3px)
Vertical
VariantTreatment
hair (default)1px ink rule (--rule-hair)
heavy3px ink rule (--rule-heavy), to open a section
decorativeSame rule, role="none" so screen readers skip it

Keyboard

KeyAction
TabSkips the separator; it is never a tab stop

Vietnamese

Thời sự

Tin tức được kiểm chứng, viết rõ ràng.

Thế giớiKinh tếVăn hoá

Ink adaptation

Upstream shadcn's grey bg-border hairline becomes solid ink. A variant prop adds the brand's heavy rule; orientation and decorative keep upstream's API. Built on Base UI Separator.