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

    Plate Map

    A microplate from 6 to 1536 wells, laid out as it is on the bench: wells colored by group or by value, rectangle selection that becomes one connected shape, and keyboard navigation well by well.

    Install

    npx shadcn@latest add @nelumbo/plate-map

    A layout

    Groups color the wells and fill the legend, with counts. An ELISA plate: a standard curve in duplicate, samples in duplicate, controls and blanks. Wells marked excluded are struck through and counted apart. Hover a well for its card; its row and column light up.

    Row
    • Standard16
    • Sample64
    • Positive control4
    • Negative control4
    • Blank8
    Excluded2

    Values

    Without groups (or with colorBy="values"), wells take their value on a scale, light to deep, and the legend becomes the scale. The same plate read at 450 nm (simulated).

    Row
    0.002.76 OD
    Excluded2

    Selection

    selectable turns on selection. Drag, or Shift and the arrows, for a rectangle; Ctrl or Cmd adds wells; Space toggles the well in focus; a row or column header takes the whole line. However the wells are picked, the selection is traced as one outline: round at its outer corners, filleted where it turns inward, and separate where wells only touch at a corner.

    1.661mean OD, 23 wells selected
    Row
    • Standard16
    • Sample64
    • Positive control4
    • Negative control4
    • Blank8
    Excluded223 wells selected

    Plate

    variant="plate" draws the plate itself at the standard footprint, 127.76 by 85.48 mm, with wells at their true pitch and offset and the labels molded on the frame. notch puts the chamfered corner where your plates have it; frame draws the plate as one flat fill or as a single line. barcode tilts the plate a little toward you, so its front wall shows below the top, and puts a label on that wall: a real Code 128 that scans, at the start, center or end. With the notch on a bottom corner, the chamfer carries down the wall too.

    Row
    • Standard16
    • Sample64
    • Positive control4
    • Negative control4
    • Blank8
    Excluded216 wells selected

    384 wells

    Beyond 96 the wells turn square, as on the plate. A diverging scale centers on a midpoint: here, percent activity in a simulated dose-response screen, with uninhibited and inhibited controls in the outer columns. On narrow screens every other header hides.

    Row
    • Uninhibited32
    • Compound320
    • Inhibited32
    Row
    0.0050.0100 %

    Small formats

    6 to 48 wells for culture plates: the wells grow, so labels fit comfortably.

    Row
    • Wild type3
    • Knockout3
    • Rescue3
    • Mock3

    Props

    PropTypeDefaultNotes
    format6 | 12 | 24 | 48 | 96 | 384 | 153696The plate. Round wells up to 96, square beyond.
    variant"grid" | "plate""grid"The wells alone, or the whole plate to scale with its frame.
    notch"top-left" | "top-right" | "bottom-left" | "bottom-right""top-left"The chamfered corner of the plate variant.
    frame"solid" | "outline""solid"The plate variant as a flat fill, or a single line with no fill.
    barcode / barcodePositionstring, "start" | "center" | "end""center"A Code 128 label on the plate's front wall, which then shows below the top.
    sidebooleanwith a barcodeThe front wall below the top, as if the plate were seen from a little in front, with or without a label.
    wellsPlateWell[]well ("B3"), group, value, label, description, excluded.
    groupsPlateGroup[]id, name, color, description. Colors follow the palette order when left out.
    colorBy"groups" | "values"groups if givenWhat colors the wells.
    scale / domain / midpoint"sequential" | "diverging", [min, max], number"sequential", the values, 0The value scale.
    scaleColoraccent role"blue"The hue of a sequential scale.
    formatValue / unit(v) => string, stringHow values are written, in wells, the readout and the legend.
    labelsbooleanfalseLabels or values inside the wells, up to 96.
    legendbooleantrueGroups with counts, or the scale, and excluded wells.
    tooltipbooleantrueA card over the well under the pointer or the keyboard cursor.
    selectablebooleanfalseRectangle, additive and line selection.
    selection / onSelectionChangestring[], (wells) => voidSelected well names, controlled or not (defaultSelection).
    onActiveChange(focus | null) => voidThe well under the pointer or the keyboard cursor.
    HelpersplateSize, wellName, parseWell, wellRange, rowName, cellsOutline, code128"A1:B3" to wells, "B3" to row and column and back; the traced outline of any set of cells as an SVG path; a string as Code 128 bar widths.