Divider
A horizontal separator line with optional centered title. Uses useContentRect for responsive width.
Import
tsx
import { Divider } from "silvery"Props
| Prop | Type | Default | Description |
|---|---|---|---|
char | string | "--" | Character to repeat |
title | string | -- | Title text centered in divider |
width | number | auto | Width (uses available width via useContentRect) |
Usage
tsx
// Simple divider
<Divider />
// With title
<Divider title="Section" />
// Custom character and width
<Divider char="=" width={40} />