NavigationList
NavigationList is a component that renders a list of items with a navigation-like style.
'use client'import {NavigationList,NavigationListSection,NavigationListTitle,NavigationListItem,} from '@nerdfish/ui'import { ChevronRightIcon, UserIcon } from 'lucide-react'export function NavigationListExample() {return (<NavigationList><NavigationListSection><NavigationListTitle title="Cakes" /><NavigationListItemhref="https://www.nerdfish.be"title="Chocolate Cake"icon={UserIcon}/><NavigationListItemas="button"onClick={() => console.info('click')}title="Strawberry Shortcake"icon={UserIcon}active/></NavigationListSection><NavigationListSection><NavigationListTitle title="Cupcakes" icon={ChevronRightIcon} /><NavigationListItem title="Carrot Cake" /><NavigationListItem title="Red Velvet Cake" /></NavigationListSection><NavigationListItem title="Vanilla Cake" /><NavigationListItem title="Lemon Cake" /></NavigationList>)}
Usage
import {NavigationList,NavigationListItem,NavigationListSection,} from '@nerdfish/ui'
<NavigationList><NavigationListItem href="https://www.nerdfish.be" title="Chocolate Cake" /><NavigationListItemas="button"onClick={() => console.info('click')}title="Strawberry Shortcake"/><NavigationListItem title="Carrot Cake" /><NavigationListSection><NavigationListItem title="Red Velvet Cake" /><NavigationListItem title="Vanilla Cake" /><NavigationListItem title="Lemon Cake" /></NavigationListSection></NavigationList>