Divider

It's a line.

import { Divider } from '@/components/divider'

function Example() {
  return <Divider />
}

Component API

PropDefaultDescription
Divider extends the JSX <hr> element
softfalseWhether the divider should use a softer color.

Examples

Basic example

Use the Divider component to add a horizontal rule between items:

import { Divider } from '@/components/divider'

function Example() {
  return <Divider />
}

With reduced contrast

Use the soft prop for secondary dividers:

import { Divider } from '@/components/divider'

function Example() {
  return <Divider soft />
}

With spacing

Use utility classes like my-* to control the vertical spacing around a divider:

import { Divider } from '@/components/divider'

function Example() {
  return <Divider className="my-6" />
}