Ir al contenido

co-sidebar-nav

A complete sidebar navigation component that renders a hierarchical menu. Accepts the raw uiSchemas.sideBar JSON from the Prolibu API and automatically renders categories, expandable groups, and leaf items.

Ver código
<co-sidebar-nav></co-sidebar-nav>

Props

PropAtributoTipoDefaultDescripción
activeKeyactive-keystring''Key of the active/selected item
iconMapicon-mapstring'{}'JSON override for key → Phosphor icon name mapping
itemsitemsstring'{}'JSON string — raw uiSchemas.sideBar object OR pre-transformed array
modemode"full" | "min"'full'Display mode: full (labels + icons) or min (icons only)
searchsearchstring''External search text (controlled mode) — overrides internal search state
searchPlaceholdersearch-placeholderstring'Search'Search input placeholder
searchablesearchablebooleanfalseShow search input
translationstranslationsstring'{}'JSON for i18n label translations { key: translatedLabel }

Eventos

EventoDetailBubblesCancelableDescripción
coNavigateNavigateDetailEmitted when a leaf item is clicked
coSearchstringEmitted when search text changes

Slots

Este componente no expone slots.

CSS Parts

Este componente no expone CSS parts.

CSS Custom Properties

Este componente no expone CSS custom properties.