py_ets

Field Button

Buttons

About

A small borderless icon/text button styled for use inside form fields like comboboxes, date pickers, and number steppers.

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

Code

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

Usage.tsx

import { FieldButton } from "@/components/ui/tailwind-fieldbutton";
import { ChevronDown } from "lucide-react";

export default function FieldButtonDemo() {
  return (
    <div className="flex items-center gap-2 rounded-md border border-neutral-300 bg-white px-2 py-1 dark:border-neutral-700 dark:bg-neutral-900">
      <span className="px-1 text-sm text-neutral-700 dark:text-neutral-300">
        Select an option
      </span>
      <FieldButton aria-label="Open menu">
        <ChevronDown className="h-4 w-4" />
      </FieldButton>
    </div>
  );
}

Dependencies

More by py_ets

View all
  • Alert Dialog

    Alert Dialog

    16
  • Progress Bar

    Progress Bar

    12
  • Command Palette

    Command Palette

    10
  • React Aria CheckboxGroup

    React Aria CheckboxGroup

    10
  • 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 Buttons

View all
  • Button

    Button

    20
  • Button

    Button

    3
  • Button Group

    Button Group

    18
  • Button

    Button

    149
  • Icon Label Subtext Button

    Icon Label Subtext Button

    69
  • Button

    Button

    9
  • Button

    Button

    37
  • Texture Button

    Texture Button

    113