Componentnavigation0.25 KB gzipZero dependencies

Separator

Horizontal or vertical dashed divider.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add separator

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { Separator } from "@/components/ui/separator"; <Separator dashed={true} />

Source code

separator.tsx + 1 helper

Zero 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 />
PropTypeDescription
orientation"horizontal" | "vertical"Layout and keyboard navigation axis. (Default: "horizontal")
dashedbooleanToggles dashed. (Default: true)
classNamestringOptional Tailwind or custom CSS classes merged with component styles.