Divider

Divider is a component that separates content in a page.


Import

Usage

Data Attributes

Divider has the following attributes on the base element:

  • data-orientation: The orientation of the divider. Based on orientation prop.

Accessibility

  • Separator role is added to the divider.
  • Support for horizontal and vertical orientation.
  • Support for HTML <hr> element or a custom element type.

API

Divider Props

AttributeTypeDescriptionDefault
orientationhorizontal | verticalThe orientation of the divider.horizontal