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
noneby default, which hides the line from assistive tech (M3: dividers are decorative);separatorwithdecorative={false}.- Accessible name
- None. A
LabeledDividerkeeps its supporting text readable as plain text after the line. - States announced
- With
decorative={false}, a vertical divider reportsaria-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.