Skip to content

Properties

Breadcrumb properties

PropertyTypeDescription
dataArray<BreadcrumbItemProps>(optional) List of pages to render as breadcrumbitems. Each object in data can include all properties from BreadcrumbItem properties.
childrenReact.ReactNode(optional) Content of the component. Can be used instead of property data, by adding Breadcrumbitem children <Breadcrumb.Item {...props} />.
variantresponsive
single
multiple
collapse
(optional) Defaults to 'responsive' or 'single' depending on content. Options: responsive | single | multiple | collapse .
hrefstring(optional) For variant single, set href for button click. Can be used instead of event/property onClick.
navTextReact.ReactNode(optional) Every <nav> on a page needs an unique aria-label text.
goBackTextReact.ReactNode(optional) Override with a custom 'Back' text for variant single (Not recommended).
homeTextReact.ReactNode(optional) Override with a custom 'Home' text (Not recommended)
backToTextReact.ReactNode(optional) Override with a custom 'Back to...' text (Not recommended).
styleTypeVarious(optional) Use one of the Section component style types (style_type). Defaults to transparent.
collapsedStyleTypeerror
info
warning
success
(optional) Use one of the Section component variants. Defaults to info.
classNamestring(optional) Custom className for the component root.
isCollapsedboolean(optional) For variant collapse, override isCollapsed for the collapsed content by updating this value using the provided property onClick.
spacingVarious(optional) Include spacing properties from Section in breadcrumb. If only true is given, the spacing will be small. Defaults to false.
skeletonboolean(optional) If set to true, an overlaying skeleton with animation will be shown.
Spacestring
object
(optional) Spacing properties like top or bottom are supported.

Breadcrumb.Item properties

PropertyTypeDescription
textReact.ReactNode(optional) Text displaying inside Breadcrumb item.
varianthome
previous
current
(optional) The component variant. Options: home | previous | current.
iconReact.ReactNode(optional) Override icon displaying on the left side (Not recommended). Default: chevron_left.
hrefstring(optional) Set what happens when the user clicks on the item. Also see onClick event.
skeletonboolean(optional) If set to true, an overlaying skeleton with animation will be shown.

NB: When interactive, the item is an inherited Button. You can therefore swap out the underlying HTML element, by providing a new element or use other Button properties, such as to instead of href.

Translations

More info about translations can be found in the general localization and Eufemia Forms localization docs.

Keynb-NOen-GBsv-SE (beta)
Breadcrumb.navTextSidehierarkiPage hierarchySidstruktur
Breadcrumb.goBackTextTilbakeBackTillbaka
Breadcrumb.homeTextHjemHomeHem
Breadcrumb.backToTextTilbake til...Back to...Tillbaka till...