Toolbar API

API documentation for Toolbar component

Toolbar#

Props#

Defines valid properties in Toolbar component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: ToolbarInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: ToolbarInstance) => 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<ToolbarPassThrough>
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: ToolbarInstance) => 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.

Interfaces#

Defines passthrough(pt) options of Toolbar component.

nametypedefaultdescription
rootToolbarPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.
startToolbarPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the start's DOM element.
centerToolbarPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the center's DOM element.
endToolbarPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the end's DOM element.

Types#

Instance of Toolbar component.

values
ComponentInstance<ToolbarProps, ToolbarState, ToolbarExposes>

ToolbarStart#

Props#

Defines valid properties in ToolbarStart component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: ToolbarStartInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: ToolbarStartInstance) => 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<ToolbarStartPassThrough>
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: ToolbarStartInstance) => 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 ToolbarStart component.

nametypedefaultdescription
toolbarToolbarInstance
null
The Toolbar component instance.

Interfaces#

Defines passthrough(pt) options of ToolbarStart component.

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

Types#

Instance of ToolbarStart component.

values
ComponentInstance<ToolbarStartProps, ToolbarStartState, ToolbarStartExposes>

ToolbarCenter#

Props#

Defines valid properties in ToolbarCenter component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: ToolbarCenterInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: ToolbarCenterInstance) => 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<ToolbarCenterPassThrough>
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: ToolbarCenterInstance) => 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 ToolbarCenter component.

nametypedefaultdescription
toolbarToolbarInstance
null
The Toolbar component instance.

Interfaces#

Defines passthrough(pt) options of ToolbarCenter component.

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

Types#

Instance of ToolbarCenter component.

values
ComponentInstance<ToolbarCenterProps, ToolbarCenterState, ToolbarCenterExposes>

ToolbarEnd#

Props#

Defines valid properties in ToolbarEnd component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: ToolbarEndInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: ToolbarEndInstance) => 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<ToolbarEndPassThrough>
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: ToolbarEndInstance) => 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 ToolbarEnd component.

nametypedefaultdescription
toolbarToolbarInstance
null
The Toolbar component instance.

Interfaces#

Defines passthrough(pt) options of ToolbarEnd component.

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

Types#

Instance of ToolbarEnd component.

values
ComponentInstance<ToolbarEndProps, ToolbarEndState, ToolbarEndExposes>

useToolbar#

Types#

Instance of useToolbar headless.

values
HeadlessInstance<useToolbarProps, useToolbarState, useToolbarExposes>