Skip to content
Browse library
BIU UI/Components/Separator
COMPONENTS

Separator

Explore the Separator component and try its interactive examples.

INTERACTIVE PREVIEW

Preview

Loading preview…
GET STARTED

Installation

Install the component source via shadcn Registry, the BIU CLI, or as an npm package.

TERMINAL / pnpm
pnpm dlx shadcn add @biudev/separator

First time using @biudev? Map "@biudev": "https://ui.biu.dev/r/0.1.0/{name}.json" under registries in your components.json (see setup).

Usage

Start with this example, then adjust the import path for your project.

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

export function Example() {
  return (
    <div style={{ display: "grid", gap: 12, width: "100%", maxWidth: 320 }}>
      <div style={{ display: "flex", alignItems: "center", gap: 10, fontSize: 13 }}>
        <span>12 runs</span>
        <Separator orientation="vertical" />
        <span>1 failed</span>
        <Separator orientation="vertical" />
        <span>41 min</span>
      </div>
      <Separator />
      <Separator label="Today" decorative={false} />
    </div>
  );
}

Examples

Try each example or switch to its code.

API reference

Properties and defaults from the component source. An asterisk marks a required property; a dash means no explicit default.

SeparatorOrientation

Also accepts properties from 'horizontal' & 'vertical'.

Some properties depend on the variant; consult the source for the full union.

SeparatorVariant

Also accepts properties from 'solid' & 'dashed' & 'subtle'.

Some properties depend on the variant; consult the source for the full union.

SeparatorLabelAlign

Also accepts properties from 'center' & 'start' & 'end'.

Some properties depend on the variant; consult the source for the full union.

SeparatorProps

Also accepts properties from Omit<ComponentPropsWithRef<'div'>, 'children'>.

Source

Review a formatted version of the component source used by the Registry.