Breadcrumb - React
Breadcrumb
import { Breadcrumb } from '@idds/react';Contoh Penggunaan
Section titled “Contoh Penggunaan”Contoh 1
Section titled “Contoh 1”Contoh 2
Section titled “Contoh 2”| Name | Type | Default | Required | Description |
|---|---|---|---|---|
items | BreadcrumbItem[] | — | Yes | Array of breadcrumb items. Setiap item memiliki: label (string), href? (string), icon? (ReactNode), disabled? (boolean), onClick? (() => void). |
separator? | string | ReactNode | '>' | No | Separator antara items. Bisa berupa string atau ReactNode (untuk icon). |
maxLength? | number | — | No | Maksimal panjang text untuk item terakhir sebelum di-truncate. |
className? | string | '' | No | ClassName tambahan untuk container. |