Documentation
Components
Divider

Divider

The Divider component is a versatile component that displays a message to the user with various customization options. It supports different severity levels, variants, colors, and additional actions.

Installation

Install the package

npm i @start-base/start-ui

Add the styles

To use the React form elements styles in a Next.js project, import the styles in your layout.tsx file.

app/layout.tsx
import "@start-base/start-ui/styles.css";

Import the component

import Divider from '@start-base/start-ui/Divider';

Usages

Divider With Horizontal Orientation

HelloWorld

Divider With Vertical Orientation

HelloWorld

Divider With Children

HelloWorld

API

NameTypeDefaultDescription
orientationstring'horizontal'Orientation of the Divider. Accepts values of type 'horizontal' | 'vertical'.
variantstring'full'Styling variant of the Divider. Accepts values of type 'full' | 'start' | 'center' | 'end'.
alignstring'center'Content alignment of the Divider. Accepts values of type 'start' | 'center' |.
colorstring'var(--sui-border)'Divider lines color. Accepts any hex color value, CSS colors or variables.
sizestring'1px'Divider line size. Accepts any pixel or REM value.
roundbooleanfalseControls whether the Divider line should have round corners or not.