Divider
catnip-divider is hidden from assistive technology by default. Set decorative to false when the separation should be exposed as a separator, and name it with dividerAriaLabel when needed.
Screen readers
| Mode | Semantics |
|---|---|
Decorative (default, decorative="true") | aria-hidden="true": purely visual; no separator role. |
Semantic (decorative="false") | role="separator", aria-orientation, and an optional aria-label from dividerAriaLabel when the separation should be named. |
What you own
- Mode: Keep the default
decorative="true"for typical layout lines. Setdecorative="false"to expose the divider as a separator, and adddividerAriaLabel(only used whendecorativeisfalse) when the separation should be named.