Active theme set to LightDarkLight high contrastDark high contrast and saved in preferences.
Copied to clipboard.
Error submitting your feedback! Please try again.

Divider Draft

Divider components are used to separate and distinguish sections of content or groups of menu items. Visually, they look like horizontal or vertical lines.

Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
View RTL
<nord-divider></nord-divider>

Properties

PropertyAttributeDescriptionTypeDefault
directiondirection

The direction of the divider.

"vertical" | "horizontal""horizontal"

Usage #

This section includes guidelines for designers and developers about the usage of this component in different contexts.

Do #

  • Use to represent thematic breaks between elements.
  • Use when you need to divide sections of content from each other.
  • Use to separate content into clear groups.
  • Use dividers sparingly, to create groupings or to separate items.

Don’t #

  • Avoid using for presentational purposes only.
  • Don’t use strong colors in dividers.
  • Don’t use dividers for replacing card components.

Additional considerations #

  • Divider uses a role called separator which indicates that the element is a divider that separates and distinguishes sections of content or groups of menu items. The implicit ARIA role of the native thematic break (<hr> element) is a separator.
  • Dividers have an implicit aria-orientation value of horizontal which can be changed using the direction property.
  • For more details, please see ARIA: separator role on MDN.

Integration

For integration guidelines, please see Web Components documentation. This documentation explains how to implement and use Nord Web Components across different technologies such as Vue.js, React, or Vanilla JavaScript.

Integration Guidelines

Localization

Nord provides a lightweight solution for localizing its components. Not all components need localizing, as for the most part snippets of text are set per instance. For full localization guidelines, please see Localization documentation.

Localization Guidelines

Troubleshooting

If you experience any issues while using Nord Web Components, please head over to the Support page for more guidelines and ways to contact us.


Was this page helpful?

YesNo
Send feedback

We use this feedback to improve our documentation.