Skip to content

Divider

A thin line that separates content, horizontal or vertical, with optional insets or a label.

import { Divider, LabeledDivider } from '@windmorph/react';

Keyboard

None. A divider has no interaction, so it takes no keys.

Screen reader

Role
none by default, which hides the line from assistive tech (M3: dividers are decorative); separator with decorative={false}.
Accessible name
None. A LabeledDivider keeps its supporting text readable as plain text after the line.
States announced
With decorative={false}, a vertical divider reports aria-orientation="vertical"; a horizontal one uses the separator default.

A LabeledDivider hides only its line; its text is always read.

Focus

None. A divider is not focusable.

Touch target

None. A divider takes no presses, so it has no touch target.

Motion

None. A divider has no motion.

What you need to do

  • Leave the default for a purely visual line, for example between list items that already read as separate: assistive tech skips it.
  • Set decorative={false} where the line marks a real break between groups of content, so screen readers announce a separator.