
- Uso
- Props
Copiar
Preguntar a la 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 | Descripción |
|---|---|---|
| nombreDeClase | cadena | Nombre de clase opcional para estilos adicionales |
| enlaces | matriz | An array of objects, each representing a breadcrumb link. Cada objeto tiene una propiedad children (el contenido de texto del enlace) y una propiedad href opcional (la URL a la que navegar cuando se hace clic en el enlace) |