Lucent UI
BreadcrumbNavLinkAlert
✦ LLM-ready

NavLink

atom

Styled navigation anchor with active, disabled, icon, and inverse states. The inverse prop uses a surface background with textPrimary for sidebar links on tinted chrome. Renders as an <a> by default but accepts a custom `as` prop for framework routers.

"Build a sidebar navigation using NavLink from lucent-ui. Include Dashboard, Settings, and Profile links, marking the current route as active."

Usage

React / JSX
import { NavLink } from 'lucent-ui'

<NavLink as="a">NavLink</NavLink>

Installation

pnpm add lucent-ui

API Reference

NavLink props — * required

PropTypeDefaultDescription
children*React.ReactNodeLink label text or content.
hrefstringURL the link points to.
isActivebooleanfalseApplies the active visual style.
iconReact.ReactNodeOptional icon rendered before the label.
inversebooleanfalseUses surface background with textPrimary instead of accent for the active state. Active inverse links show border-default border, shadow-md elevation, and a 3px accent right border indicator. Ideal for sidebar navigation on tinted chrome.
disabledbooleanfalsePrevents interaction and dims the link.
onClick() => voidClick handler.
asReact.ElementType"a"Override rendered element — e.g. a Next.js Link.