Popover
Colour Picker
A label colour picker where a colour is a radio button, not a div with a handler: arrow keys work, the value reaches the form, and no JS is needed.
What you can change
- the trigger caption through label and the current colour through selected
- the palette through swatches and the note under the grid through hint
- the number of columns in the grid rule
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/popover-005?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
The component is self-contained: one file, no dependencies, its own palette in local variables --vibeui-popover-005-*. Server-side: the panel runs on the HTML popover, useId separates the group name. The layout is declared only inside :popover-open. The swatches are labels with a visually hidden radio inside; the selected one is ringed through :has(input:checked), and focus is caught through :has(input:focus-visible). Each swatch's colour arrives in its own variable --vibeui-popover-005-swatch. A legend with float:left requires clear:both on the grid.
Tags
- popover
- color
- radio
- swatches
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…