Guide
Components
Divider

Divider Component Usage

ℹ️

This component is used to display a divider with a border and optional text.

Example Preview

Divider Example

Example Usage

ℹ️

This example shows how to use the component.

import { Divider } from "@/@core";
 
export default function MyComponent() {
  return (
    <>
      <h1>My Heading</h1>
      <Divider />
      <Divider text="Or" variant="horizontal" />
      <p>My Paragraph</p>
    </>
  );
}

Props

ℹ️

This table shows the props that can be passed into the component.

NameTypeDefaultDescription
textstringnullThe text to display in the divider.
classNamestringnullThe class name to apply to the divider.
variantstringverticalThe variant of the divider. vertical, horizontal

Variants Prop Values

ℹ️

This table shows the values that can be passed into the variant prop.

ValueDescription
verticalThe divider will be displayed vertically with a border on the left and right
horizontalThe divider will be displayed horizontally with a border on the top and bottom