py_ets

Color Swatch Picker

Forms

About

A selectable grid or stack of color swatches for picking a preset color, built on React Aria Components and styled with Tailwind CSS.

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

Code

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

Usage.tsx

import {
  ColorSwatchPicker,
  ColorSwatchPickerItem,
} from "@/components/ui/tailwind-colorswatchpicker";

export default function ColorSwatchPickerDemo() {
  return (
    <ColorSwatchPicker>
      <ColorSwatchPickerItem color="#A00" />
      <ColorSwatchPickerItem color="#f80" />
      <ColorSwatchPickerItem color="#080" />
      <ColorSwatchPickerItem color="#08f" />
      <ColorSwatchPickerItem color="#008" />
    </ColorSwatchPicker>
  );
}

Dependencies

More by py_ets

View all
  • Alert Dialog

    Alert Dialog

    17
  • Progress Bar

    Progress Bar

    13
  • Command Palette

    Command Palette

    12
  • React Aria CheckboxGroup

    React Aria CheckboxGroup

    11
  • Segmented Control

    Segmented Control

    8
  • React Aria DatePicker

    React Aria DatePicker

    8
  • React Aria GridList

    React Aria GridList

    7
  • React Aria Switch

    React Aria Switch

    7

More in Forms

View all
  • Form

    Form

    7
  • Contact Form

    Contact Form

    32
  • Login 2

    Login 2

    16
  • Contact Card

    Contact Card

    1.1K
  • Book A Demo 1

    Book A Demo 1

    94
  • Paper Plane

    Paper Plane

    80
  • Premium Auth

    Premium Auth

    613
  • Authentication Card

    Authentication Card

    52