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

    Button Group

    Lays out related buttons as one unit. A wrapper only: it works with any Button or Icon Button, and adds no JavaScript.

    Install

    npx shadcn@latest add @nelumbo/button-group

    Standard

    Separate buttons that react together: press and hold one and its corners round, without any button changing width.

    Connected

    A tight row with small inner corners. Selected toggles round out into full pills, so the choice reads from the shape as well as the color.

    Usage

    <ButtonGroup variant="connected" aria-label="Text alignment">  <IconButton toggle icon="format_align_left" label="Align left" />  <IconButton toggle icon="format_align_center" label="Align center" /></ButtonGroup>

    Props

    PropTypeDefaultNotes
    variant"standard" | "connected""standard"
    aria-labelstringName the group when the buttons work as one control