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

    FAB

    The floating action button holds the single most important action on a screen. Use one per screen, at most.

    Install

    npx shadcn@latest add @nelumbo/fab

    Colors

    Neutral container by default, the accent container inside a dynamic color scope. Brand always uses the accent container; solid is black (white in dark mode), for when the action must stand out against busy content.

    Sizes

    Small (40) for compact layouts, default (56), and large (96) for a hero action on big screens. Corners tighten while pressed.

    Extended

    An extended FAB shows its label. Scroll the inbox: it collapses to the icon while you scroll down and opens again when you scroll up.

    • Ines Moreau9:00
      Revised floor planI moved the pantry wall 40 cm east so the island fits.
    • Tomás Reyes10:10
      Invoice 2026-114Attached. Net 30 as usual, thanks for the quick turnaround.
    • Priya Natarajan11:20
      Thursday standupCan we push to 10:30? I have a site visit at 9.
    • Jonas Berg12:30
      Tile samplesThe matte grey arrived. The terracotta is back-ordered until December.
    • Hana Sato13:40
      Permit updateThe city approved the window change. Stamped drawings attached.
    • Leo Martins14:50
      Lighting planTwo options for the hallway. I lean towards the recessed one.
    • Ines Moreau15:00
      Re: Revised floor planWorks for me. Can you check the clearance to the fridge?
    • Ines Moreau16:10
      Revised floor planI moved the pantry wall 40 cm east so the island fits.
    • Tomás Reyes9:20
      Invoice 2026-114Attached. Net 30 as usual, thanks for the quick turnaround.
    • Priya Natarajan10:30
      Thursday standupCan we push to 10:30? I have a site visit at 9.
    • Jonas Berg11:40
      Tile samplesThe matte grey arrived. The terracotta is back-ordered until December.
    • Hana Sato12:50
      Permit updateThe city approved the window change. Stamped drawings attached.
    • Leo Martins13:00
      Lighting planTwo options for the hallway. I lean towards the recessed one.
    • Ines Moreau14:10
      Re: Revised floor planWorks for me. Can you check the clearance to the fridge?

    Usage

    <Fab icon="edit" label="Compose" extended={!scrollingDown} className="fixed right-6 bottom-6" />

    Props

    PropTypeDefaultNotes
    iconIconNamerequired
    labelstringrequiredVisible when extended; accessible name always
    extendedbooleanfalseAnimates the label in and out
    color"auto" | "primary" | "secondary" | "brand" | "surface" | "solid""auto"auto: neutral container, the accent container inside a dynamic scope
    size"sm" | "default" | "lg""default"40, 56, 96 px