thaw/demo_markdown/docs/breadcrumb/mod.md

35 lines
1 KiB
Markdown
Raw Normal View History

# 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>
</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. |
### 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. |