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

    Chip

    Small, compact controls: an action, a filter, or a value someone entered. Chips share the small corner radius of text fields, so they read as part of a form rather than as buttons.

    Install

    npx shadcn@latest add @nelumbo/chip

    Assist

    A shortcut to a related action, usually with an icon. Elevated chips stand out on images and maps.

    Filter

    Toggles, read out as pressed or not. When selected, a chip fills in and a check slides in. If it has an icon, the icon turns into the check.

    Brand color

    Selected filter chips can use the accent container.

    Input

    A value someone entered, such as a recipient or a tag, with a button to remove it. Backspace or Delete on that button removes the chip too.

    ToMaya LinTheo ParkInes Duarte
    brief.pdfdesign-systemlocked

    Suggestion

    Suggested replies or searches, usually text only. Put them in a scrolling row on small screens.

    Usage

    import { Chip, FilterChip, InputChip, ChipGroup } from "@/components/ui/chip"​<Chip icon="event">Add to calendar</Chip>​<ChipGroup aria-label="Topics">  <FilterChip selected={design} onSelectedChange={setDesign}>Design</FilterChip>  <FilterChip icon="eco">Vegan</FilterChip>  <FilterChip trailingIcon="arrow_drop_down">Price</FilterChip></ChipGroup>​<InputChip avatar="ML" onRemove={() => remove("maya")}>Maya Lin</InputChip>

    Props

    PropTypeDefaultNotes
    Chip variant"assist" | "suggestion""assist"A button; supports asChild
    icon / trailingIconIconNameChip and FilterChip; InputChip takes icon
    elevatedbooleanfalseChip and FilterChip: shadow instead of a border
    FilterChip selectedbooleanControlled; or defaultSelected, with onSelectedChange
    FilterChip color"auto" | "neutral" | "brand""auto"Selected fill
    InputChip avatarstring | ReactNodeImage URL, or initials in a circle
    InputChip onRemove() => voidShows the remove button
    ChipGroup scrollbooleanfalseOne scrolling row instead of wrapping