Divider - Keep React
Table of Contents#
Default Divider#
Displays a default divider with the secondary color.
Divider color variant#
You can customize the color of the divider using the color
prop. Available options are 'primary'
, 'secondary'
, 'success'
, 'warning'
, and 'error'
.
Divider size variant#
Adjust the size of the divider with the size
prop. Options include 'sm'
, 'md'
, 'lg'
, 'xl'
, and '2xl'
.
Divider align variant#
Control the alignment of the divider with the variant
prop. Choose from 'start'
, 'end'
, or 'center'
.
API Reference#
Here is a list of the props that you can pass to the Divider component:
Property | Description | Type | Default |
---|---|---|---|
color | Available color options for the divider. | primary secondary success warning error | secondary |
size | Available sizes options for the divider. | sm md lg xl 2xl | md |
variant | Available variants for the divider alignment. | start end center | center |
children | Content to be placed within the divider, if any. | ReactNode | None |