npm.io
5.1.1 • Published 3 months ago

@spark-web/divider

Licence
Version
5.1.1
Deps
3
Size
26 kB
Vulns
0
Weekly
0

title: Divider storybookPath: page-layout-divider--default isExperimentalPackage: false

Used to separate and group content. In most cases use the Stack.

<Divider />

Examples

Width

Defines the “width” of the divider.

<Stack gap="large">
  <Stack gap="small">
    <Text>standard</Text>
    <Divider width="standard" />
  </Stack>
  <Stack gap="small">
    <Text>large</Text>
    <Divider width="large" />
  </Stack>
</Stack>
Color

Defines the “color” of the divider.

<Stack gap="large">
  <Stack gap="small">
    <Text>standard</Text>
    <Divider color="standard" />
  </Stack>
  <Stack gap="small">
    <Text>neutral</Text>
    <Divider color="neutral" />
  </Stack>
</Stack>

Props