properui

Button

Buttons

About

A button built on React Aria with primary, secondary, tertiary, link and destructive color variants, five sizes, plus loading, disabled and icon-only states, used to trigger a single action like submit, confirm or navigate.

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

Code

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

Usage.tsx

"use client";

import Button from "@/components/ui/button";

export default function DestructiveButtonsDemo() {
  return (
    <div className="flex flex-col items-start gap-8 md:flex-row md:items-center">
      <Button color="primary-destructive" size="xs">
        Button xs
      </Button>
      <Button color="primary-destructive" size="sm">
        Button sm
      </Button>
      <Button color="primary-destructive" size="md">
        Button md
      </Button>
      <Button color="primary-destructive" size="lg">
        Button lg
      </Button>
      <Button color="primary-destructive" size="xl">
        Button xl
      </Button>
    </div>
  );
}

Dependencies

More by properui

View all
  • Command Menu

    Command Menu

    13
  • Loading Indicator

    Loading Indicator

    7
  • Breadcrumbs

    Breadcrumbs

  • Toggle

    Toggle

  • Tags

    Tags

  • Progress Indicators

    Progress Indicators

  • Radio Buttons

    Radio Buttons

  • Badge

    Badge

More in Buttons

View all
  • Button Save

    Button Save

    46
  • Button

    Button

    20
  • Eclipse Button

    Eclipse Button

    5
  • Button

    Button

    32
  • Button

    Button

    6
  • Button

    Button

    14
  • Button Group

    Button Group

    37
  • Split Button

    Split Button

    32