NavLink
@stellaria/nebula-webNavLinkPropsPreview
Props
16| Prop | Type | Default |
|---|---|---|
active | boolean | false |
children | ReactNode | — |
className | string | — |
color | ColorExtended | "primary" |
component Router adapter: the component depends on neither Next nor any other router. Without it the link is an `<a>`, which reloads the document — in an SPA that throws away the rail's own scroll. | ElementType | — |
defaultOpened | boolean | false |
description | ReactNode | — |
disabled | boolean | false |
href | string | — |
label required | ReactNode | — |
leftSection | ReactNode | — |
onOpenChange | ((opened: boolean) => void) | — |
onPress | (() => void) | — |
opened | boolean | — |
rightSection | ReactNode | — |
variant | NavLinkVariant | "light" |
Slot props
6Each one spreads over an inner element, so you can restyle a region without forking the component.
| Prop | Type | Default |
|---|---|---|
bodyProps Label and description column. | BoxSlotProps | — |
childrenProps The child-link panel. It lives inside a `Collapse`. | BoxSlotProps | — |
descriptionProps The description below the label, when there is one. | TextSlotProps | — |
labelProps Rotulo del enlace. | TextSlotProps | — |
leftSectionProps Envoltorio de leftSection. | BoxSlotProps | — |
rightSectionProps Envoltorio de rightSection. | BoxSlotProps | — |
Also accepts
On top of its own props, this component forwards these groups.