Blossom UI

Separator

Separator component, a horizontal or vertical line that can hold a label such as or.

How to use it

Run npx @blossomui/react add separator, or copy src/components/UI/Separator/Separator.tsx into your React project and import it.

import { Separator } from './components/ui/Separator'

Props

SeparatorProps

PropTypeDescription
orientation'horizontal' | 'vertical'
variant'solid' | 'dashed' | 'dotted'Line style.
childrenReactNodeText or element shown in the line, for example "or". Only in horizontal separators.
align'start' | 'center' | 'end'Where the content sits in the line.
decorativebooleanUse it when the line is only decoration: screen readers skip it.
classNamestring

Getting started

  • Introduction
  • Installation
  • Changelog

Customization

  • Colors
  • Brand color
  • Texts and translation

Components

  • Accordion
  • Alert dialog
  • Alerts
  • Avatar
  • Badges
  • Banner
  • Breadcrumb
  • Buttons
  • Calendar
  • Cards
  • Carousel
  • Charts
  • Chip input
  • Collapsible
  • Color picker
  • Combobox
  • Command palette
  • Context menu
  • Copy button
  • Date picker
  • Drawer
  • Dropdown
  • Empty state
  • File upload
  • Footer
  • Forms
  • Hover card
  • Jumbotron
  • KBD
  • Menubar
  • Modal
  • Navbar
  • Navigation menu
  • Number input
  • OTP input
  • Pagination
  • Popover
  • Pricing
  • Progress
  • Rating
  • Resizable panels
  • Scroll area
  • Segmented control
  • Separator
  • Sidebar
  • Skeleton
  • Slider
  • Spinners
  • Stats
  • Stepper
  • Survey
  • Table
  • Tabs
  • Time picker
  • Timeline
  • Timer button
  • Toasts
  • Tooltip
  • Transfer list
  • Tree