Separator

Visual divider between content sections. Install Separator from the VLLNT UI registry with the shadcn CLI.

Report a bug

Visual divider between content sections. Part of the core family in VLLNT UI, it ships as a machine-readable registry entry — copy the source directly into your app with the shadcn CLI and own it, no runtime dependency on a component library.

Preview

Switch between light and dark to inspect the embedded Storybook preview.

Installation

Add Separator to your project with the shadcn CLI. The source lands in your codebase, ready to adapt:

pnpm dlx shadcn@latest add https://ui.vllnt.ai/r/separator.json

Source

"use client"; import * as SeparatorPrimitive from "@radix-ui/react-separator"; import { cn } from "../../lib/utils"; const Separator = ({ className, decorative = true, orientation = "horizontal", ref, ...props }: React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> & { ref?: React.Ref<React.ComponentRef<typeof SeparatorPrimitive.Root>>; }) => ( <SeparatorPrimitive.Root className={cn( "shrink-0 bg-border", orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", className, )} decorative={decorative} orientation={orientation} ref={ref} {...props} /> ); Separator.displayName = SeparatorPrimitive.Root.displayName; export { Separator };

Stories

Explore every variant and state in the interactive Storybook:

Preview

Switch between light and dark to inspect the embedded Storybook preview.

Dependencies

  • @vllnt/ui@^0.3.0