Skip to content

Divider

Use Divider to separate and group content or build rhythm and structure. It renders a styled <hr> element.

The SDK Divider rendered as a horizontal rule between content.
import { Divider } from '/@dropins/tools/components.js';
PropTypeReq?Description
variant'primary' | 'secondary'NoChange the divider style. Defaults to primary.

Divider also accepts a className prop, which is added to the rendered <hr>. Other standard HTML attributes aren’t applied to the element.

import { Divider, provider } from '/@dropins/tools/components.js';
await provider.render(Divider, {
variant: 'secondary',
className: 'my-divider',
})(document.querySelector('.divider'));
  • Header — renders a Divider beneath its title.
  • Design tokens — the colors and spacing the divider uses.