# Nav Item (Andromeda Legacy)

Nav Item is a component of the free, MIT-licensed Andromeda Legacy design system from AI Canvas (https://aicanvas.me). Index of every system, component and install setup: https://aicanvas.me/llms.txt

Sidebar item with icon, active state, right-edge indicator dot. Mono label by default; sans available.

- Design system: [Andromeda Legacy](https://aicanvas.me/design-systems/andromeda.md)
- License: MIT
- Install slug: `andromeda-nav-item`
- Page: https://aicanvas.me/design-systems/andromeda/nav-item

## Install

```bash
npx shadcn@latest add @aicanvas/andromeda-nav-item
```

Needs a free AI Canvas account; signed out, the command writes a placeholder (an `AccountRequired` notice) instead.

Every Andromeda Legacy component at once: `npx shadcn@latest add @aicanvas/andromeda`.

Token setup: the Install section of https://aicanvas.me/llms.txt.

## Use it

It installs to `components/aicanvas/andromeda/components/NavItem.tsx` (under `src/` if your project has one). With the usual `@/` alias:

```tsx
import { NavItem } from '@/components/aicanvas/andromeda/components/NavItem'
```

## Example

```tsx
import { NavItem } from '@/components/aicanvas/andromeda/components/NavItem'
import { Compass } from '@/components/icons/compass'

<NavItem icon={Compass} label="Overview" active />
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `icon?` | `React.ComponentType<IconProps>` |  | Optional icon component rendered at 20px before the label. |
| `label` | `React.ReactNode` |  | Visible content of the nav row. |
| `active?` | `boolean` | `false` | Marks the row as the current selection, applying accent text and the indicator dot. |
| `mono?` | `boolean` | `true` | Renders the label in uppercase mono type; set false for sans. |
| `type?` | `'button'\|'submit'\|'reset'` | `'button'` | HTML button type; defaults to 'button' to avoid accidental form submits. |
| `layoutGroupId?` | `string` | `'andromeda-navitem-indicator'` | Override only when two distinct nav lists share a viewport and you don't want the active dot to animate between them. To get the slide between sibling NavItems, wrap the list in framer's <LayoutGroup>. |
| `className?` | `string` |  | Extra classes merged onto the root element. |
| `style?` | `React.CSSProperties` |  | Inline styles merged onto the root element. |

## More Andromeda Legacy components

- [Panel Header](https://aicanvas.me/design-systems/andromeda/panel-header.md)
- [Panel Menu](https://aicanvas.me/design-systems/andromeda/panel-menu.md)
- [Planet](https://aicanvas.me/design-systems/andromeda/planet.md)
- [Progress Bar](https://aicanvas.me/design-systems/andromeda/progress-bar.md)
- [Radar Chart](https://aicanvas.me/design-systems/andromeda/radar-chart.md)
