Form Color
>= v1.5Form color component.
Form Color, Personalization Blocks
Example:
// AppServiceProvider, "boot" method. TallStackUi::customize() ->form('color') ->block('block', 'classes');
WARNING!
You are browsing the docs for an old version of TallStackUI. Consider upgrade your project to TallStackUI v3.
<x-color />
<x-color label="Color" hint="Select your favorite color or insert a hexadecimal value." />
An option to pick the color using a different selector.
<x-color picker />
An option to force the color selection through the color selector box.
<x-color selectable />
This will transform the input in readonly and open the color selector box when the input is clicked.
An option to specific your own hexadecimal colors.
<x-color :colors="['#83493D', '#3D8357', '#693D83', '#3AB3D1', '#5DD116']" />
Starting from version 1.35.0, you can now set the custom colors using the configuration file to avoid the need to pass it every time you need to use the component.
<x-color x-on:set="alert(`Selected Color: ${$event.detail.color}`)" />
An option to not show validation error message.
<x-color invalidate />