| nav_link |
component |
ts |
ui |
1.0.0 |
impure |
FnNavLink(props: FnNavLinkProps): JSX.Element |
Link de navegacion con icono, descripcion y anidamiento. Wrapper sobre Mantine NavLink. |
| mantine |
| navigation |
| link |
| sidebar |
| menu |
| component |
| ui |
|
|
|
|
false |
|
|
react |
| name |
type |
required |
description |
| label |
string |
true |
Texto principal del link |
|
| name |
type |
required |
description |
| description |
string |
false |
Texto secundario debajo del label |
|
| name |
type |
required |
description |
| icon |
ReactNode |
false |
Icono a la izquierda del label |
|
| name |
type |
required |
description |
| active |
boolean |
false |
Estado activo/seleccionado |
|
| name |
type |
required |
description |
| onClick |
MouseEventHandler |
false |
Callback al hacer click |
|
| name |
type |
required |
description |
| href |
string |
false |
URL para navegacion como anchor |
|
| name |
type |
required |
description |
| children |
ReactNode |
false |
NavLinks hijos para crear arbol anidado |
|
| name |
type |
required |
description |
| opened |
boolean |
false |
Controla si los hijos estan expandidos |
|
| name |
type |
required |
description |
| defaultOpened |
boolean |
false |
Estado inicial de expansion de hijos |
|
|
Link de navegacion con highlight activo, icono y soporte para sub-items colapsables |
false |
|
|
frontend/functions/ui/nav_link.tsx |
|
false |
|