remold/ui

Label picker

Labelling an issue: picking a label drops it onto the issue as a chip while the others make room, and typing a name that doesn't exist yet offers to create it.

MotionBase UI

ENG-218

Checkout total rounds tax twice on mobile

The tax line is rounded once per item and again on the subtotal, so totals drift by a cedi.

Labels
  • Bug

Things to try

  • Add a label. "Add label" opens a picker with a search box, and a highlight glides to what you point at.
  • Pick one. It drops onto the issue as a chip while the others make room.
  • Type a new name. The list offers to create it, with a colour that pops in.
  • Take a chip off with its ×.

Install

npx shadcn@latest add https://your-docs-site/r/label-picker.json

Dependencies

The install command adds these for you. If you copy the code by hand, install them yourself.

npm install @base-ui/react @hugeicons/core-free-icons @hugeicons/react @remold-ui/react motion

How it works

  • The picker is Base UI's Popover, so focus moves into the search box and back to the button when it closes.
  • The gliding highlight and the chips making room are Motion.
The issue is made up.

On this page