Color Field

A color field allows users to adjust the hue of an HSL or HSB color value on a circular track.

Example

Usage

Installation

$npx libravelui@latest add color-field

Anatomy

import { ColorField } from "@/components/ui/core/color-field";
import { Label, Input } from "@/components/ui/core/field";
<ColorField>
  <Label>Color</Label>
  <Input placeholder="#155DFC" />
</ColorField>

Controlled

Control the color field value using external state. This is useful when the color value needs to stay in sync with form state or application logic.

Usage

With Picker

Use a color field together with a color picker. This lets users input a color value directly or choose it visually from the picker.

Usage

Props

Loading types…

Accessible React component library to copy, customize, and own your UI. Built for Next.js, Vite, and Laravel.

Crafted by dervyon. Peep the Source Code on GitHub.

Hosted on Vercel. The source code's got the MIT license.

2025 - 2026 · LibravelUI

Starter Kits

Templates

    Coming Soon

Labs