Start here
  • InstallationAdd Nelumbo to a shadcn project
  • ThemingBrand accent, neutrals, dynamic color
  • Biology componentsSequences, maps, plates and trees
  • katalyx.bio

    List

    Rows of related things: people, messages, settings, files. Each row has a title with room on either side for an avatar or icon and for a time, a switch or an arrow. A whole row can be one link or button.

    Install

    npx shadcn@latest add @nelumbo/list

    Messages

    Avatars lead, a time and a count trail. Each row is a button (onClick), so the whole row is one target; screen readers hear the name, then the message. The open conversation is selected.

    • Can we move the review to Thursday? The prototype needs one more pass.9:412
    • New easing curves are in the motion doc, have a look when you can.8:15
    • Copy for the onboarding screens is ready for review.Yesterday
    • Shipped the fix for the date picker. Let me know if it still drifts.Mon

    Segmented

    variant="segmented" puts each row on its own tile, 2px apart, with the group's outer corners rounded. Subheaders and dividers start a new group. Rows can link somewhere (href) or hold a control.

    • Connections
    • Wi-FiStudio 5G
    • BluetoothOff
    • Connected devices
    • Display and sound
    • DisplayDark theme, blue accent
    • Do not disturbUntil 7:00
    • Sound70%
    • AboutVersion 2.4.0

    Selection

    With asChild, the title can be your own element. Here it's the checkbox's label, so a click anywhere on the row ticks it.

    Plain, with dividers

    Static rows, with an overline, a description, and an inset divider that starts after the leading slot.

    • LeadMaya KowalskiProduct designOwner
    • MemberKenji WatanabeMotion and prototyping
    • MemberLéa MartinDesign systems
    • MemberOmar HaddadFrontend

    Usage

    import { List, ListDivider, ListItem, ListSubheader } from "@/components/ui/list"​<List variant="segmented">  <ListSubheader>Connections</ListSubheader>  <ListItem icon="wifi" description="Studio 5G" trailing={<Switch aria-label="Wi-Fi" />}>Wi-Fi</ListItem>  <ListItem icon="palette" href="/settings/display" trailingIcon="chevron_right">Display</ListItem></List>​// your own link<ListItem asChild leading={<Avatar name={user.name} />} description={user.email}>  <Link href={`/people/${user.id}`}>{user.name}</Link></ListItem>

    Props

    PropTypeDefaultNotes
    List variant"plain" | "segmented""plain"Segmented: rows on tiles, grouped
    ListItem childrenReactNodeThe title
    icon / leadingIconName / ReactNodeA Material Symbol, or an avatar, image or checkbox
    overline / descriptionReactNodeAbove and below the title; the description clamps to 2 lines
    metaReactNodeShort trailing text: a time, a count
    trailing / trailingIconReactNode / IconNameA control (stays clickable), or an icon
    href / onClick / asChildMake the row one link or button; asChild for your own
    selectedbooleanfalseFilled, and aria-current
    disabledbooleanfalse
    align"center" | "top""center"Top for long descriptions
    ListDivider insetbooleanfalseStart after the leading slot