HextaUI

Separator: Long content

Long labels wrap and unbroken strings break, while a short stretch of line stays visible on each side.

Messages before you joined the channel are kept for ninety days
https://hextaui.com/docs/components/separator/very-long-anchor
import { Separator } from "@/components/ui/separator"

export function SeparatorLongContent() {
  return (
    <div className="flex w-full max-w-72 flex-col gap-6">
      <Separator>
        Messages before you joined the channel are kept for ninety days
      </Separator>
      <Separator align="start">
        https://hextaui.com/docs/components/separator/very-long-anchor
      </Separator>
    </div>
  )
}

This adds the example as components/examples/separator/long-content.tsx, together with the Separator component and the HextaUI theme tokens it needs.

pnpm dlx shadcn@latest add https://hextaui.com/r/separator-long-content.json

To add only the component, follow the Separator installation.

Props in this example

The Separator props this example sets, from the API reference.

PropTypeDefault
alignWhere the label sits along the line.
"start" | "center" | "end""center"

Every prop is in the Separator API reference.

See them all, with keyboard support and accessibility notes, on the Separator page.