Default

<NavLink href="#" label="Home" />
<NavLink href="#" label="Settings" active />
<NavLink href="#" label="Users" />

With icons

<NavLink href="#" label="Home" leftSection={<HomeIcon />} />
<NavLink href="#" label="Settings" leftSection={<SettingsIcon />} active />
<NavLink href="#" label="Users" leftSection={<UsersIcon />} />

Description

<NavLink
  href="#"
  label="Home"
  description="Return to the dashboard"
  leftSection={<HomeIcon />}
/>
<NavLink
  href="#"
  label="Settings"
  description="Manage your preferences"
  leftSection={<SettingsIcon />}
  active
/>

Variants

variant="subtle"

variant="light"

variant="filled"

<NavLink label="Link" variant="subtle" />    {/* default */}
<NavLink label="Link" variant="light" active />
<NavLink label="Link" variant="filled" active />

Right section & badge

<NavLink
  href="#"
  label="Inbox"
  leftSection={<InboxIcon />}
  rightSection={<Badge size="xs">12</Badge>}
/>
<NavLink href="#" label="Disabled link" disabled />

Props

PropTypeDefaultDescription
labelchildrenPrimary text label
descriptionchildrenSecondary text below the label
leftSectionchildrenIcon or content before the label
rightSectionchildrenIcon or content after the label
hrefstringURL — renders an <a> when set
activebooleanApplies active styling
disabledbooleanPrevents interaction
variant'filled'|'light'|'subtle''subtle'Active color variant
colorUiColorAccent color for active state
componentstringRoot element override