Separator component

The kit:separator component renders a thin horizontal or vertical dividing line.

separator.svelte
Above the separator Below the separator

kit:separator renders as <hr> by default. It sets role="separator" and aria-orientation automatically. The color and opacity are token-based and can be overridden per-instance.

Examples of separator

orientation

  • orientation: 'horizontal' | 'vertical' = 'horizontal'

Vertical separators are inline-flex and stretch to fill their container’s height.

separator.svelte

inset

Adds a leading margin to indent the separator from the left edge useful inside lists.

  • inset: boolean = false
separator.svelte

Without preprocess Lapikit

If you aren’t using the Lapikit preprocessor in svelte.config.js, import the components directly:

API Reference

kit:separator

propstypedescriptiondefault
isenum'div''hr'HTML element to render.'hr'
orientationenum'horizontal''vertical'Direction of the separator.'horizontal'
insetbooleanAdds a leading indent.false
thicknessstring | numberBorder width override (px number or CSS string).
opacitystring | numberOpacity override.0.12
colorstringColor override (--kit-separator-color).

To organize your data, combine Separators with List for greater legibility.