kopia lustrzana https://github.com/shoelace-style/shoelace
37 wiersze
893 B
Markdown
37 wiersze
893 B
Markdown
![]() |
---
|
||
|
meta:
|
||
|
title: Breadcrumb Item
|
||
|
description: Breadcrumb Items are used inside breadcrumbs to represent different links.
|
||
|
layout: component
|
||
|
---
|
||
|
|
||
|
```html:preview
|
||
|
<sl-breadcrumb>
|
||
|
<sl-breadcrumb-item>
|
||
|
<sl-icon slot="prefix" name="house"></sl-icon>
|
||
|
Home
|
||
|
</sl-breadcrumb-item>
|
||
|
<sl-breadcrumb-item>Clothing</sl-breadcrumb-item>
|
||
|
<sl-breadcrumb-item>Shirts</sl-breadcrumb-item>
|
||
|
</sl-breadcrumb>
|
||
|
```
|
||
|
|
||
|
```jsx:react
|
||
|
import { SlBreadcrumb, SlBreadcrumbItem, SlIcon } from '@shoelace-style/shoelace/dist/react';
|
||
|
|
||
|
const App = () => (
|
||
|
<SlBreadcrumb>
|
||
|
<SlBreadcrumbItem>
|
||
|
<SlIcon slot="prefix" name="house"></SlIcon>
|
||
|
Home
|
||
|
</SlBreadcrumbItem>
|
||
|
<SlBreadcrumbItem>Clothing</SlBreadcrumbItem>
|
||
|
<SlBreadcrumbItem>Shirts</SlBreadcrumbItem>
|
||
|
</SlBreadcrumb>
|
||
|
);
|
||
|
```
|
||
|
|
||
|
:::tip
|
||
|
Additional demonstrations can be found in the [breadcrumb examples](/components/breadcrumb).
|
||
|
:::
|