Breadcrumb
Shows the current page location within a hierarchy.
Preview
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | array | [] | { label, href } objects |
Usage
const { Breadcrumb } = window.ColorSnap;
ReactDOM.createRoot(document.getElementById('root')).render(
React.createElement(Breadcrumb, { items: [{ label: 'Home', href: '/' }, { label: 'Button' }] })
);