Download the PHP package mrshanebarron/color-picker without Composer
On this page you can find all versions of the php package mrshanebarron/color-picker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mrshanebarron/color-picker
More information about mrshanebarron/color-picker
Files in mrshanebarron/color-picker
Download mrshanebarron/color-picker
More information about mrshanebarron/color-picker
Files in mrshanebarron/color-picker
Vendor mrshanebarron
Package color-picker
Short Description Color picker component for Laravel - supports Livewire and Vue
License MIT
Package color-picker
Short Description Color picker component for Laravel - supports Livewire and Vue
License MIT
Please rate this library. Is it a good library?
Informations about the package color-picker
Color Picker
A color selection component for Laravel applications. Choose colors from a palette or enter hex values. Works with Livewire and Vue 3.
Installation
Livewire Usage
Basic Usage
With Preset Colors
With Custom Input
Livewire Props
| Prop | Type | Default | Description |
|---|---|---|---|
wire:model |
string | - | Selected color (hex) |
colors |
array | defaults | Preset color options |
show-input |
boolean | true |
Show hex input field |
placeholder |
string | '#000000' |
Input placeholder |
Vue 3 Usage
Setup
Basic Usage
Custom Palette
Form Integration
With Preview
Vue Props
| Prop | Type | Default | Description |
|---|---|---|---|
modelValue |
String | '#000000' |
Selected hex color |
colors |
Array | Default palette | Available colors |
showInput |
Boolean | true |
Show manual input |
placeholder |
String | '#000000' |
Input placeholder |
Events
| Event | Payload | Description |
|---|---|---|
update:modelValue |
string |
Color changed |
Default Palette
Features
- Color Palette: Click to select
- Hex Input: Enter custom values
- Preview: Shows selected color
- Validation: Validates hex format
- Customizable: Use your own palette
Styling
Uses Tailwind CSS:
- Grid layout for swatches
- Ring highlight on selected
- Input with validation
- Rounded color swatches
Requirements
- PHP 8.1+
- Laravel 10, 11, or 12
- Tailwind CSS 3.x
License
MIT License
All versions of color-picker with dependencies
PHP Build Version
Package Version
The package mrshanebarron/color-picker contains the following files
Loading the files please wait ...