Accessibility

Accessibility Props

NameTypeDescription
ariaHiddenbooleanIf true, hides the separator from screen readers

Automatic Accessibility Features

  • The component automatically renders as a semantic <hr> element
  • When a label is provided, the label text is announced by screen readers

Best Practices

  • Set ariaHidden={true} when the separator is purely decorative and doesn’t provide meaningful content structure
  • When using a label, ensure the text is descriptive and helpful for understanding content structure

Examples

Semantic separator for content organization

<Separator />

Decorative separator

<Separator ariaHidden />

Separator with descriptive label

<Separator label="Contact Information" />