Color Picker
Live Demos HubColor Picker
Interactive production-grade hypermedia component for HTMXUI.
Interactive Preview
{value}
HTML Source
<!--
Component: color-picker.html
Configurable State: themeColor ('primary'|'secondary'|'destructive'), size ('sm'|'md'|'lg'), isOpen (boolean)
Usage: Bind styles dynamically using hx-class="{ 'bg-primary': themeColor === 'primary' }" or hx-style="{ width: size === 'lg' ? '100%' : 'auto' }"
-->
<div hx-ext="reactive" hx-state="{ themeColor: \'primary\', size: \'md\', isOpen: false }" class="flex items-center gap-2">
<input type="color" name="{name}" value="{value}" class="h-8 w-8 cursor-pointer rounded-md border border-border bg-background p-1" hx-post="{update_url}" hx-trigger="change" />
<span class="text-sm text-muted-foreground">{value}</span>
</div>