Design Tokens for Mesh have just been released!
Skip to content

Our Divider component is a styled horizontal rule. It is a 20% opacity black single line to maintain its contrast on a variety of (light) background colours.

Installation

bash
npm install @nib-components/divider

Usage

jsx
import Divider from '@nib-components/divider';

Interactive demo

jsx

Props

PropTypeDefaultDescription
colorstringdefaultsets the color for the Divider component. Can be any of the validBorderColorValues
sizestringfinesets the size for the Divider component. Value(s) must be a valid css value with units or valid borderWidth token values none, fine, thin, medium or thick

Considerations

The Divider component does not include spacing. You must handle this separately by using the appropriate layout component.

It is recommended to utilize the default properties for the divider. If customization is required, please consult with your designer to ensure consistency with the design specifications.