Divider API

API documentation for Divider component

Divider#

Props#

Defines valid properties in Divider component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DividerInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DividerInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DividerPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DividerInstance) => ReactNode)
null
The children to render.
align"center" | "left" | "right" | "top" | "bottom"
null
Alignment of the content.
orientation"horizontal" | "vertical"
horizontal
Specifies the orientation, valid values are 'horizontal' and 'vertical'.
type"solid" | "dashed" | "dotted"
solid
Border style type.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Interfaces#

Defines passthrough(pt) options of Divider component.

nametypedefaultdescription
rootDividerPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.
contentDividerPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the content's DOM element.

Types#

Instance of Divider component.

values
ComponentInstance<DividerProps, DividerState, DividerExposes>

DividerContent#

Props#

Defines valid properties in DividerContent component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: DividerContentInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: DividerContentInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<DividerContentPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: DividerContentInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by DividerContent component.

nametypedefaultdescription
dividerDividerInstance
null
Instance of the Divider component.

Interfaces#

Defines passthrough(pt) options of DividerContent component.

nametypedefaultdescription
rootDividerContentPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of DividerContent component.

values
ComponentInstance<DividerContentProps, DividerContentState, DividerContentExposes>

useDivider#

Types#

Instance of useDivider headless.

values
HeadlessInstance<useDividerProps, useDividerState, useDividerExposes>