Divider
A component that renders a dividing line. --bdc is initialized to var(--divider).
Structure
div.a--dividerCSS
Props
| Property | Description |
|---|---|
bdw,bds,bdc | Border properties for the dividing line |
Import
import { Divider } from 'lism-css/react'; Usage
↓
Example
…Contents…
…Contents…
リサイズ可能
<Box bgc='base-2' py='40' ta='center'>...Contents...</Box><Divider /><Box bgc='base-2' py='40' ta='center'>...Contents...</Box> ↓
Customizing the style
…Contents…
…Contents…
リサイズ可能
<Box bgc='base-2' py='40' ta='center'>...Contents...</Box><Divider bds='dotted' bdw='4px' bdc='blue'/><Box bgc='base-2' py='40' ta='center'>...Contents...</Box> ↓
Vertical dividing line
…Contents…
…Contents…
リサイズ可能
<Flex ai='center' g='20'> <Box fx='1' bgc='base-2' py='40' ta='center'>...Contents...</Box> <Divider isVertical bds='dashed' bdw='2px' aslf='stretch' /> <Box fx='1' bgc='base-2' py='40' ta='center'>...Contents...</Box></Flex>