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

    12
  • React Aria CheckboxGroup

    React Aria CheckboxGroup

    9
  • Command Palette

    Command Palette

    7
  • React Aria DatePicker

    React Aria DatePicker

    6
  • Progress Bar

    Progress Bar

    6
  • React Aria Tree

    React Aria Tree

    4
  • React Aria Switch

    React Aria Switch

    4
  • React Aria ColorArea

    React Aria ColorArea

    4

More in Forms

View all
  • Premium Auth

    Premium Auth

    524
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    73
  • Login 1

    Login 1

    53
  • Form

    Form

    137
  • Card Studio

    Card Studio

    41
  • Split Sign In Form

    Split Sign In Form

    45
  • SignInPage

    SignInPage

    667