Divider

A horizontal rule component that visually separates sections of content. Can optionally display centered text or other content between the two lines.

Import

import { Divider } from '@wavebooking/aqua-fusion';

Preview

Loading preview...

Usage

<Divider />

With text

<Divider>or continue with</Divider>

Custom styling

<Divider lineClassName="border-primary-300" contentClassName="text-primary-500">
  Section
</Divider>

Props

PropTypeDefaultDescription
childrenReactNode-Optional content displayed centered between the divider lines.
classNamestring-Additional CSS class for the outer flex container.
contentClassNamestring-Additional CSS class for the centered content span.
lineClassNamestring-Additional CSS class for the horizontal line elements.