Skip to content
Navigation

NavLink

client33.75 kB
@stellaria/nebula-webNavLinkProps

Preview

Props

17
PropTypeDefault

active

booleanfalse

aria-label

The accessible name when the visible label is not enough: a rail that hides its labels still has to name its links. It lands on the element itself, whatever `component` is.

string

—

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

booleanfalse

description

ReactNode

—

disabled

booleanfalse

href

string

—

label

required
ReactNode

—

leftSection

ReactNode

—

onOpenChange

((opened: boolean) => void)

—

onPress

(() => void)

—

opened

boolean

—

rightSection

ReactNode

—

variant

NavLinkVariant"light"

Slot props

6

Each one spreads over an inner element, so you can restyle a region without forking the component.

PropTypeDefault

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.

Permissions · 2Style props · 128