{{-- One colour picker dialog per page (native + showModal(), like ): quick colours, the browser's colour input and R/G/B fields 0–255 kept in step. Any button opens it with x-on:click="$dispatch('color-picker:open', { id: 'colour-picker', title: '…', color: '#1d4ed8', method: 'setColumnColor', args: ['order'] })" "Use colour" calls the Livewire method with the args and the chosen #rrggbb; "Restore default colour" (when `resettable` is true in the event) calls it with null. Closing returns focus to the opening button. --}} @props([ 'id' => 'colour-picker', 'presets' => ['#1d4ed8', '#23476a', '#0f5c63', '#14532d', '#047857', '#3b2d5e', '#7c2d2d', '#b91c1c', '#9a3412', '#78350f', '#b45309', '#374151'], ])

{{ __('layout.color_picker.presets') }}
@foreach ($presets as $preset) @endforeach
@foreach (['r' => 'red', 'g' => 'green', 'b' => 'blue'] as $channel => $key)
@endforeach

{{ __('layout.color_picker.preview') }}: