--- localeCode: en-US order: 11 category: Basic title: Divider icon: doc-divider brief: Divider is a linear, lightweight component used to logically organize element content and page structure or areas. --- ## Demos ### How to import ```jsx import import { Divider } from '@douyinfe/semi-ui'; ``` ### Basic Usage ```jsx live=true import React from 'react'; import { Divider } from '@douyinfe/semi-ui'; () => { return (

Horizontal Solid Line

Semi Design is a design system. It defines a set of components.

Horizontal Dashed Line

Semi Design is a design system. It defines a set of components.

Vertical Solid Line

Left Middle Right

Vertical Dashed Line

Left Middle Right
); }; ``` ### With Children ```jsx live=true import React from 'react'; import { Divider, Typography } from '@douyinfe/semi-ui'; import { IconSemiLogo } from '@douyinfe/semi-icons'; () => { return (
Left Text Center Text Right Text
); }; ``` ## API Reference | Properties | Instructions | Type | Default | Version | |-----------|---------------------------------------------------------------|-------------|---------| --------- | | align | Content Align Mode | left \| center \| right | center | 2.9.0 | | children | Content | ReactNode | - | 2.9.0 | | className | ClassName | string | - | 2.9.0 | | dashed | Whether is dashed | boolean | false | 2.9.0 | | layout | Divider Direction | horizontal \| vertical | horizontal | 2.9.0 | | margin | Vertical (Horizontal if in horizontal mode) margin of divider | number \| string | - | 2.9.0 | | style | Custom Style | CSSProperties | - | 2.9.0 | ## Design Tokens