start
installationdivider
Basic usage
import {Divider} from "tuix-design"copy
I am a divider
<Divider>I am a divider</Divider>copy
Example
left
<Divider textPos="left">I am a divider</Divider>copy
right
<Divider textPos="right">I am a divider</Divider>copy
<Divider color="blue" space={10} size={5}></Divider>copy
API
| props | type | status | default | description |
|---|---|---|---|---|
| type | vertical | horizontal | optional | horizontal | Divider type |
| textPos | center | left | right | optional | center | content's position |
| space | number | optional | None | Space arround divider in pixel |
| size | number | optional | 1 | Divider size |
| color | string | optional | #f4f4f4 | Divider color |
usageexampleapi