Breadcrumb API

API documentation for Breadcrumb component

Props#

Defines valid properties in Breadcrumb component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: BreadcrumbInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: BreadcrumbInstance) => 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<BreadcrumbPassThrough>
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: BreadcrumbInstance) => 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.
onAction(key: string) => void
null
Callback to invoke when an action is performed.
[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 Breadcrumb component.

nametypedefaultdescription
onAction(event: MouseEvent, key: string) => void
null
Callback to invoke when an action is performed.

Interfaces#

Defines passthrough(pt) options of Breadcrumb component.

nametypedefaultdescription
rootBreadcrumbPassThroughType<HTMLAttributes<HTMLElement>>
null
Used to pass attributes to the root's DOM element.
listBreadcrumbPassThroughType<HTMLAttributes<HTMLOListElement>>
null
Used to pass attributes to the list's DOM element.
itemBreadcrumbPassThroughType<HTMLAttributes<HTMLLIElement>>
null
Used to pass attributes to the item's DOM element.
separatorBreadcrumbPassThroughType<HTMLAttributes<HTMLLIElement>>
null
Used to pass attributes to the separator's DOM element.
iconBreadcrumbPassThroughType<HTMLAttributes<SVGElement>>
null
Used to pass attributes to the icon's DOM element.

Types#

Instance of Breadcrumb component.

values
ComponentInstance<BreadcrumbProps, BreadcrumbState, BreadcrumbExposes>

Props#

Defines valid properties in BreadcrumbList component.

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

nametypedefaultdescription
breadcrumbBreadcrumbInstance
null
Instance of the Breadcrumb component.

Interfaces#

Defines passthrough(pt) options of BreadcrumbList component.

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

Types#

Instance of BreadcrumbList component.

values
ComponentInstance<BreadcrumbListProps, BreadcrumbListState, BreadcrumbListExposes>

Props#

Defines valid properties in BreadcrumbItem component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: BreadcrumbItemInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: BreadcrumbItemInstance) => 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<BreadcrumbItemPassThrough>
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: BreadcrumbItemInstance) => ReactNode)
null
The children to render.
uKeyPropertyKey
null
Unique key for the option. Used for identification.
disabledboolean
null
Specifies if the item is disabled.
isCurrentboolean
null
Specifies if the item is the current one.
[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 BreadcrumbItem component.

nametypedefaultdescription
breadcrumbBreadcrumbInstance
null
Instance of the Breadcrumb component.

Interfaces#

Defines passthrough(pt) options of BreadcrumbItem component.

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

Types#

Instance of BreadcrumbItem component.

values
ComponentInstance<BreadcrumbItemProps, BreadcrumbItemState, BreadcrumbItemExposes>

Props#

Defines valid properties in BreadcrumbSeparator component.

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

nametypedefaultdescription
breadcrumbBreadcrumbInstance
null
Instance of the Breadcrumb component.

Interfaces#

Defines passthrough(pt) options of BreadcrumbSeparator component.

nametypedefaultdescription
rootBreadcrumbSeparatorPassThroughType<HTMLAttributes<HTMLLIElement>>
null
Used to pass attributes to the root's DOM element.
iconBreadcrumbSeparatorPassThroughType<HTMLAttributes<SVGElement>>
null
Used to pass attributes to the icon's DOM element.

Types#

Instance of BreadcrumbSeparator component.

values
ComponentInstance<BreadcrumbSeparatorProps, BreadcrumbSeparatorState, BreadcrumbSeparatorExposes>

useBreadcrumb#

Props#

Defines valid properties in useBreadcrumb.

nametypedefaultdescription
onAction(key: string) => void
null
Callback to invoke when an action is performed.

Exposes#

Defines the methods and properties exposed by useBreadcrumb.

nametypedefaultdescription
onAction(event: MouseEvent, key: string) => void
null
Callback to invoke when an action is performed.

Types#

Instance of useBreadcrumb headless.

values
HeadlessInstance<useBreadcrumbProps, useBreadcrumbState, useBreadcrumbExposes>