py_ets

Color Field

Forms

About

A labeled text input for entering and validating a hex color value, with description and error message support.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Color Field to your project and fits it to your theme.

Code

How Color Field is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { ColorField } from "@/components/ui/colorfield";

export default function ColorFieldDemo() {
  return (
    <div className="flex w-full max-w-xs items-center justify-center">
      <ColorField
        label="Background color"
        defaultValue="#A00000"
        description="Enter a hex color value."
      />
    </div>
  );
}

Dependencies

More by py_ets

View all
  • Alert Dialog

    Alert Dialog

    8
  • React Aria CheckboxGroup

    React Aria CheckboxGroup

    7
  • Command Palette

    Command Palette

    6
  • React Aria DatePicker

    React Aria DatePicker

    5
  • Progress Bar

    Progress Bar

    4
  • React Aria Tree

    React Aria Tree

    3
  • React Aria Switch

    React Aria Switch

    3
  • React Aria ColorArea

    React Aria ColorArea

    2

More in Forms

View all
  • Premium Auth

    Premium Auth

    495
  • Authentication Card

    Authentication Card

    44
  • Login 1

    Login 1

    52
  • Login 2

    Login 2

    7
  • Form

    Form

    31
  • Card Studio

    Card Studio

    41
  • Login Card

    Login Card

    32
  • Form

    Form

    136