Marigold
Marigold

Application

MarigoldProvider
RouterProvider

Layout

AppLayoutbeta
Aside
Aspect
Breakout
Center
Columns
Container
Grid
Inline
Inset
Scrollable
Split
Stack
Tiles

Actions

ActionBaralpha
Button
Link
LinkButton
ToggleButtonbeta

Form

Autocomplete
Calendar
Checkbox
ComboBox
DateField
DatePicker
FileField
Form
Multiselectdeprecated
NumberField
Radio
SearchField
Select
Slider
Switch
TagFieldbeta
TextArea
TextField
TimeField

Collection

SelectList
Table
Tag

Navigation

Accordion
Breadcrumbsupdated
Pagination
Sidebarbeta
Tabsupdated
TopNavigationbeta

Overlay

ContextualHelp
Dialog
Drawer
Menu
Toastbeta
Tooltip

Content

Badge
Card
Divider
EmptyStatebeta
Headline
Icon
List
Loader
SectionMessage
SVG
Text

Formatters

DateFormat
NumericFormat

Hooks and Utils

cn
cva
extendTheme
parseFormData
useAsyncListData
useListData
useResponsiveValue
useTheme
VisuallyHidden
Components

Breadcrumbs

A component for displaying hierarchical navigation with separators.

The <Breadcrumbs> component helps users to understand their current location within a website or app. It shows a sequence of clickable items, each representing a step or level in the hierarchy, making it easier to navigate back to previous pages or sections.

Anatomy

The <Breadcrumbs> component consists of breadcrumb items and separators, such as chevrons, arranged in a horizontal trail to represent a navigation path.

Anatomy of breadcrumbs

Appearance

The appearance of a component can be customized using the variant and size props. These props adjust the visual style and dimensions of the component, available values are based on the active theme.

Home
Events
Music
...
  1. Home
  2. Events
  3. Music
PropertyTypeDescription
variantdefaultThe available variants of this component.
sizesmall | default | largeThe available sizes of this component.

Usage

<Breadcrumbs> are typically used to display a navigational hierarchy, showing the path from the homepage to the current page. Each Breadcrumbs.Item represents a step in this path and must include an href to define its destination. All items are rendered as links, allowing users to quickly navigate back to previous levels, reducing the number of clicks needed and improving the overall user experience.

Home
Events
Music
...
  1. Home
  2. Events
  3. Music
import { Breadcrumbs, BreadcrumbsProps } from '@marigold/components';export default (props: BreadcrumbsProps) => (  <Breadcrumbs {...props}>    <Breadcrumbs.Item href="#">Home</Breadcrumbs.Item>    <Breadcrumbs.Item href="#">Events</Breadcrumbs.Item>    <Breadcrumbs.Item href="#">Music</Breadcrumbs.Item>  </Breadcrumbs>);

Collapsing Breadcrumbs

When the breadcrumb list exceeds the maximum number of visible items, it can collapse to show an ellipsis ("..."). This feature is helpful when dealing with deep navigation structures that may overwhelm the user.

  1. Home
  2. Pop
  3. Freiburg im Breisgau
import { Breadcrumbs } from '@marigold/components';export default () => (  <Breadcrumbs maxVisibleItems={4}>    <Breadcrumbs.Item href="#">Home</Breadcrumbs.Item>    <Breadcrumbs.Item href="#">Events</Breadcrumbs.Item>    <Breadcrumbs.Item href="#">Music</Breadcrumbs.Item>    <Breadcrumbs.Item href="#">Pop</Breadcrumbs.Item>    <Breadcrumbs.Item href="#">Freiburg im Breisgau</Breadcrumbs.Item>  </Breadcrumbs>);

As Navigation

Here's a revised version with a more supportive tone:

Using breadcrumbs as navigation

When breadcrumbs represent the primary or secondary navigation for a page, place them in a <nav> element with an appropriate aria-label (e.g. aria-label="Breadcrumbs"). This creates a navigation landmark that helps assistive technologies identify key sections of the page. To support a clearer page structure, keep the number of landmarks minimal and avoid using them for breadcrumbs in contexts like table rows or popovers.

Home
Events
Music
...
  1. Home
  2. Events
  3. Music
import { Breadcrumbs } from '@marigold/components';export default () => (  <nav aria-label="Breadcrumbs">    <Breadcrumbs>      <Breadcrumbs.Item href="#">Home</Breadcrumbs.Item>      <Breadcrumbs.Item href="#">Events</Breadcrumbs.Item>      <Breadcrumbs.Item href="#">Music</Breadcrumbs.Item>    </Breadcrumbs>  </nav>);

Props

Did you know? You can explore, test, and customize props live in Marigold's storybook. Watch the effects they have in real-time!
View Breadcrumbs stories

Breadcrumbs

Prop

Type

Breadcrumbs.Item

Prop

Type

Last update: 3 minutes ago

Accordion

Component to show and hide related content from the main page.

Pagination

Component that divides up large datasets into manageable chunks.

On this page

AnatomyAppearanceUsageCollapsing BreadcrumbsAs NavigationPropsBreadcrumbsBreadcrumbs.Item