Divider

分类:

other

日期:

2022-1-11

标签:

chakra

Dividers are used to visually separate content in a list or group.

Import#

import { Divider } from '@chakra-ui/react';

Usage#

The Divider displays a thin horizontal or vertical line, and renders a hr tag.

<Divider />

Divider Orientation#

Pass the orientation prop and set it to either horizontal or vertical.

<Divider orientation="horizontal" />

If the vertical orientation is used, make sure that the parent element is assigned a height.

<Center height="50px">
<Divider orientation="vertical" />
</Center>

Composition#

<Stack direction="row" h="100px" p={4}>
<Divider orientation="vertical" />
<Text>Chakra UI</Text>
</Stack>

Props#

colorScheme

Color Schemes Divider

(string & {})

size

Sizes Divider

string

variant

"solid" | "dashed"
"solid"
footer logo

© 2022 Designed with chakra ui. Powered by contentlayerjs and nextjs etc. All rights reserved

TwitterYouTubeGithub