2024-01-03 20:52:56 +08:00
|
|
|
# Breadcrumb
|
|
|
|
|
|
|
|
```rust demo
|
|
|
|
view! {
|
|
|
|
<Breadcrumb>
|
2024-06-04 10:13:37 +08:00
|
|
|
<BreadcrumbItem>
|
|
|
|
<BreadcrumbButton>"Leptos"</BreadcrumbButton>
|
|
|
|
</BreadcrumbItem>
|
|
|
|
<BreadcrumbDivider />
|
|
|
|
<BreadcrumbItem>
|
|
|
|
<BreadcrumbButton>"UI"</BreadcrumbButton>
|
|
|
|
</BreadcrumbItem>
|
|
|
|
<BreadcrumbDivider />
|
|
|
|
<BreadcrumbItem>
|
|
|
|
<BreadcrumbButton current=true>"Thaw"</BreadcrumbButton>
|
|
|
|
</BreadcrumbItem>
|
2024-01-03 20:52:56 +08:00
|
|
|
</Breadcrumb>
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### Breadcrumb Props
|
|
|
|
|
2024-02-09 22:44:22 +08:00
|
|
|
| Name | Type | Default | Description |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| class | `OptionalProp<MaybeSignal<String>>` | `Default::default()` | Addtional classes for the breadcrumb element. |
|
|
|
|
| separator | `MaybeSignal<String>` | `/` | Breadcrumb separator. |
|
|
|
|
| children | `Children` | | Breadcrumb's content. |
|
2024-01-03 20:52:56 +08:00
|
|
|
|
|
|
|
### BreadcrumbItem Props
|
|
|
|
|
2024-02-09 22:44:22 +08:00
|
|
|
| Name | Type | Default | Description |
|
|
|
|
| --- | --- | --- | --- |
|
|
|
|
| class | `OptionalProp<MaybeSignal<String>>` | `Default::default()` | Addtional classes for the breadcrumb link element. |
|
|
|
|
| children | `Children` | | BreadcrumbItem's content. |
|