breadcrumbs
A hierarchy of links to the current page in an application.
Import
Import just the breadcrumbs styles.
@import "@winnie-ui/css/spatial/breadcrumbs";@import "@winnie-ui/css/visual/breadcrumbs";Anatomy
Attach the appropriate data attributes in the structure below.
<ol data-component="breadcrumbs"> <li data-component="breadcrumb"> <a data-slot="link"> <i data-slot="icon" /> <span data-slot="label" /> </a> <span data-slot="separator" /> </li> <li data-component="breadcrumb"> <i data-slot="icon" /> <span data-slot="label" /> <span data-slot="separator" /> </li></ol>Examples
Size
Use the data-size attribute to change the size.
With Links
Use the link slot with an anchor tag to turn a breadcrumb into a link.
Icon
Use the icon slot to add an icon before the label of the breadcrumb.
Current
Use the data-current or aria-current attributes to identify the current pages’ breadcrumb.
Disabled
Use the data-disabled or aria-disabled attributes to mark a breadcrumb as disabled.
Reference
breadcrumbs
Groups all of the breadcrumb’s together.
breadcrumb
Groups all of the parts of the breadcrumb together.