logo

Divider

Examples

Divider is horizontal by default. You can add text within Divider.

expand code expand code

You can use non-heading style of divider text by setting plain.

expand code expand code

Divider with inner title, set orientation="left/right" to align it.

expand code expand code

Use type="vertical" make it vertical.

expand code expand code

Divider API#

Property Description Type Default Value
ChildContent ParameterContent to show inside the divider RenderFragment --
Text ParameterText to show inside the divider String --
Plain ParameterWhen false, the text will not be a header style. When true it will be header style. Boolean false
Type ParameterType of divider - 'horizontal' | 'vertical' DirectionVHType DirectionVHType.Horizontal
Orientation ParameterContent/Text orientation - 'left' | 'right' | 'center'. Ignored when not using `Text` or `ChildContent` String center
Dashed ParameterWhether to style the line as dashed or not. Boolean false
Id ParameterID for the component's HTML String Uniquely Generated ID
Class ParameterSpecifies one or more class names for an DOM element. String --
Style ParameterSpecifies an inline style for a DOM element. String --
RefBack ParameterA ForwardRef instance. You can get a reference to the internal DOM by using AntDesign.ForwardRef.Current. ForwardRef --
Typography Flex
文档已更新,请点击 此处 更新。
A new version of this app is available. Click here to update.