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

    15
  • Command Palette

    Command Palette

    9
  • React Aria CheckboxGroup

    React Aria CheckboxGroup

    9
  • Progress Bar

    Progress Bar

    8
  • React Aria DatePicker

    React Aria DatePicker

    7
  • Segmented Control

    Segmented Control

    6
  • React Aria Switch

    React Aria Switch

    6
  • React Aria GridList

    React Aria GridList

    5

More in Forms

View all
  • Login 1

    Login 1

    64
  • Premium Auth

    Premium Auth

    571
  • Contact Card

    Contact Card

    1.1K
  • Form

    Form

    18
  • Book A Demo 1

    Book A Demo 1

    91
  • Authentication Card

    Authentication Card

    52
  • Card Studio

    Card Studio

    47
  • Login Card

    Login Card

    35