Componentnavigation0.25 KB gzipZero dependencies
Separator
Horizontal or vertical dashed divider.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add separatorOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { Separator } from "@/components/ui/separator"; <Separator dashed={true} />Source code
separator.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxseparator.tsx34 lines
import * as React from "react";import { cn } from "./lib/utils"; export interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> { orientation?: "horizontal" | "vertical"; dashed?: boolean; className?: string;} export function Separator({ orientation = "horizontal", dashed = true, className, ...props}: SeparatorProps) { const isHorizontal = orientation === "horizontal"; return (Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { Separator } from "@/components/ui/separator"; <Separator />| Prop | Type | Description |
|---|---|---|
| orientation | "horizontal" | "vertical" | Layout and keyboard navigation axis. (Default: "horizontal") |
| dashed | boolean | Toggles dashed. (Default: true) |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |