Skip to Content
✨ Just dropped my UI Library — still cooking up some magic! Stay tuned & maybe… hire me  or sponsor me 😉 
DocumentationSeparator

Separator

A simple line separator component for creating visual divisions between content sections. Supports both horizontal and vertical orientations.

Install Dependencies

npx
quickcode-ui add Separator

Default Usage

Default Separator

Navigation Menu

Separators help organize content and create visual hierarchy.

Props

PropTypeDefaultDescription
classNamestring-Additional CSS classes to apply to the separator
orientation"horizontal" | "vertical""horizontal"Direction of the separator line
decorativebooleantrueWhether the separator is purely decorative
...propsReact.HTMLAttributes<HTMLDivElement>-All standard HTML div attributes

Features

  • Flexible Orientation: Support for both horizontal and vertical separators
  • Accessible: Proper ARIA attributes for screen readers
  • Semantic HTML: Uses appropriate roles based on decorative property
  • Responsive Design: Adapts beautifully to different screen sizes
  • Dark Mode Ready: Built-in support for light and dark themes
Last updated on