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

NameTypeDefaultVariantsDescription
orientationstringhorizontalhorizontal verticalOrientation of the Divider
variantstringdefaultdefault fullWidth inset middleVariant of the Divider
componentstringdivComponent of the Divider
contentAlignstringcenterContent align of the Divider
classNamestringClassname of the Divider