UIPin
ComponentsIconsIllustrationsMotionTemplatesApps
Boards
UIPin

Free, open-source UI components, icons, illustrations, motion, templates and apps, in one search. Every item links to its source and licence.

UIPin is free. If it saved you time, you can keep it running:

Buy me a coffee
ComponentsIconsIllustrationsMotionTemplatesAppsLibrariesCompareNew this weekMCP for agentsBoardsPrivacy

Components, icons and artwork belong to their authors and are shown under their open-source licences.

shadcn/ui/Separator

Data display
Compiling

Theme it

Every preview, live

Brand colour

Corner radius

Font

Recolours shadcn’s tokens, Tailwind’s accent colours and colours set in the code. Red, amber and green classes stay, since they usually mean error, warning or success.

Separator

npx shadcn@latest add https://ui.shadcn.com/r/styles/new-york-v4/separator.json
Open in v0 Docs Repo
Library
shadcn/ui
License
MIT
Stack
React · Tailwind CSS · radix
Packages
cnradix-ui
Size
28 lines
Demo
From shadcn/ui

Code

registry/new-york-v4/ui/separator.tsx

"use client"

import * as React from "react"
import { cn } from "cn"
import { Separator as SeparatorPrimitive } from "radix-ui"

function Separator({
  className,
  orientation = "horizontal",
  decorative = true,
  ...props
}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
  return (
    <SeparatorPrimitive.Root
      data-slot="separator"
      decorative={decorative}
      orientation={orientation}
      className={cn(
        "shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
        className
      )}
      {...props}
    />
  )
}

export { Separator }

More like this

Falling Text

React Bits·Text effectsMIT+

Collapsible

shadcn/ui·Data display

Menubar

HextaUI·Overlays

Collapsible

HextaUI·Data display

Ai Loading

Kokonut UI·Feedback & loaders

Menubar

shadcn/ui·Overlays

Navigation Menu

shadcn/ui·Overlays

Animated Frameworks

Eldora UI·Other

Ai Sources

SmoothUI·Text effects

Ai Prompt

Kokonut UI·Inputs & forms

Toolbar Expandable

Motion Primitives·Navigation

Border Trail

Motion Primitives·Cursor & effects

Shape Hero

Kokonut UI·Page sections

Disclosure

Motion Primitives·Data display

Button group

HextaUI·Buttons