PHPackages                             mrshanebarron/color-picker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mrshanebarron/color-picker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mrshanebarron/color-picker
==========================

Color picker component for Laravel - supports Livewire and Vue

v1.0.4(4mo ago)012MITBladePHP ^8.1

Since Dec 14Pushed 4mo agoCompare

[ Source](https://github.com/mrshanebarron/color-picker)[ Packagist](https://packagist.org/packages/mrshanebarron/color-picker)[ RSS](/packages/mrshanebarron-color-picker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (6)Used By (0)

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
------------

[](#installation)

```
composer require mrshanebarron/color-picker
```

Livewire Usage
--------------

[](#livewire-usage)

### Basic Usage

[](#basic-usage)

```

```

### With Preset Colors

[](#with-preset-colors)

```

```

### With Custom Input

[](#with-custom-input)

```

```

### Livewire Props

[](#livewire-props)

PropTypeDefaultDescription`wire:model`string-Selected color (hex)`colors`arraydefaultsPreset color options`show-input`boolean`true`Show hex input field`placeholder`string`'#000000'`Input placeholderVue 3 Usage
-----------

[](#vue-3-usage)

### Setup

[](#setup)

```
import { SbColorPicker } from './vendor/sb-color-picker';
app.component('SbColorPicker', SbColorPicker);
```

### Basic Usage

[](#basic-usage-1)

```

  Selected: {{ selectedColor }}

import { ref } from 'vue';
const selectedColor = ref('#3B82F6');

```

### Custom Palette

[](#custom-palette)

```

import { ref } from 'vue';

const color = ref('#1E40AF');
const brandColors = [
  '#1E40AF', // Primary
  '#1E3A8A', // Primary Dark
  '#60A5FA', // Primary Light
  '#10B981', // Success
  '#F59E0B', // Warning
  '#EF4444', // Danger
];

```

### Form Integration

[](#form-integration)

```

      Theme Color

      Background

      Save Settings

```

### With Preview

[](#with-preview)

```

```

### Vue Props

[](#vue-props)

PropTypeDefaultDescription`modelValue`String`'#000000'`Selected hex color`colors`ArrayDefault paletteAvailable colors`showInput`Boolean`true`Show manual input`placeholder`String`'#000000'`Input placeholder### Events

[](#events)

EventPayloadDescription`update:modelValue``string`Color changedDefault Palette
---------------

[](#default-palette)

```
[
  '#000000', '#FFFFFF', '#F3F4F6', '#6B7280',
  '#EF4444', '#F97316', '#F59E0B', '#EAB308',
  '#84CC16', '#22C55E', '#10B981', '#14B8A6',
  '#06B6D4', '#0EA5E9', '#3B82F6', '#6366F1',
  '#8B5CF6', '#A855F7', '#D946EF', '#EC4899'
]
```

Features
--------

[](#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
-------

[](#styling)

Uses Tailwind CSS:

- Grid layout for swatches
- Ring highlight on selected
- Input with validation
- Rounded color swatches

Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 10, 11, or 12
- Tailwind CSS 3.x

License
-------

[](#license)

MIT License

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance75

Regular maintenance activity

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

5

Last Release

142d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a38dc9b4ccc180ee3e9df8879f8747ea9dbf36812c6546827fe504fa8993eb8?d=identicon)[mrshanebarron](/maintainers/mrshanebarron)

### Embed Badge

![Health badge](/badges/mrshanebarron-color-picker/health.svg)

```
[![Health](https://phpackages.com/badges/mrshanebarron-color-picker/health.svg)](https://phpackages.com/packages/mrshanebarron-color-picker)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
