A blossom-style color picker with 3 variants: petal-only, petals with arc lightness slider, and an animated ring picker with spring-physics cursor repulsion.
Dependencies
Interaction Type
Click the center flower core button to expand/collapse with tactile click audio. Hover petals for micro-clicks and click petals or dots to select colors. Drag the arc slider for real-time audio ticks.
Props
Options you can pass to customize this component.
variantPicker style. blossom = petals only, blossom-arc = petals + arc slider, ring = animated dot ring.
valueControlled color value for the picker.
defaultValueInitial color value for uncontrolled usage.
colorsCustom color palette. Accepts hex strings or {h, s, l} objects.
onChangeCalled with the full color object when a color is selected or adjusted.
onCollapseCalled with the current color when the picker collapses.
disabledDisables all interactions.
openOnHoverExpands the picker on mouse hover instead of click.
initialExpandedStarts the picker in expanded state.
animationDurationDuration of expand/collapse animations in ms.
showAlphaSliderShows the arc slider for lightness adjustment.
coreSizeSize of the core button in pixels.
petalSizeSize of each petal in pixels.
collapsibleWhether the picker can be collapsed.
classNameAdditional CSS classes for the root element.
Installation
How to use
import { BlossomPicker } from "@/components/ui/color-picker-standalone"
export function Demo() {
return (
<div className="flex gap-8">
<BlossomPicker variant="blossom" initialExpanded coreSize={48} petalSize={48} />
<BlossomPicker variant="blossom-arc" initialExpanded coreSize={48} petalSize={48} />
</div>
)
}Source Code
Click the code icon in the top-right corner to view the source code.
Credits
Original implementation inspired by blossom color picker patterns.
Keep in mind
All components here are original implementations, built from scratch with no copied code, assets, or content. We study UI/UX patterns we admire and craft our own versions, often with added features. If your work inspired something here and isn't credited, or a credit is incomplete, please open an issue - we'll fix it promptly.
License & Usage
// No code loaded.