
- Utilizzo
- Props
Copia
Chiedi all'IA
import { BrowserRouter } from "react-router-dom";
import { Breadcrumb } from "@/ui/navigation/bread-crumb/components/Breadcrumb";
export const MyComponent = () => {
const breadcrumbLinks = [
{ children: "Home", href: "/" },
{ children: "Category", href: "/category" },
{ children: "Subcategory", href: "/category/subcategory" },
{ children: "Current Page" },
];
return (
<BrowserRouter>
<Breadcrumb className links={breadcrumbLinks} />
</BrowserRouter>
)
};
| Props | Tipo | Descrizione |
|---|---|---|
| nomeClasse | string | Nome classe opzionale per uno styling aggiuntivo |
| collegamenti | array | An array of objects, each representing a breadcrumb link. Ogni oggetto ha una proprietà children (il contenuto testuale del collegamento) e una proprietà href opzionale (l’URL a cui navigare quando il collegamento viene cliccato) |