reshaped

Reshaped Button

Buttons 1

About

Renders its children as button content and works with both href and onClick. Supports solid, outline, ghost and faded variants, neutral/primary/critical/positive colors, four sizes with fullWidth, loading and disabled states, start/end icons, icon-only mode, rounded shape, raised elevation and a Button.Group compound component.

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

Code

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

Usage.tsx

import { DropdownMenu, Reshaped, View } from "reshaped/bundle";
import Button from "@/components/ui/reshaped-button";

const ChevronDownIcon = () => (
  <svg
    viewBox="0 0 24 24"
    fill="none"
    stroke="currentColor"
    strokeWidth="2"
    strokeLinecap="round"
    strokeLinejoin="round"
  >
    <polyline points="6 9 12 15 18 9" />
  </svg>
);

export default function Demo() {
  return (
    <Reshaped theme="slate">
      <div style={{ margin: "0 auto", padding: 24, display: "flex", justifyContent: "center" }}>
        <View gap={4} align="start">
          <Button.Group>
            <Button variant="outline">File</Button>
            <Button variant="outline">Edit</Button>
            <Button variant="outline">View</Button>
          </Button.Group>
          <Button.Group>
            <Button>Save changes</Button>
            <DropdownMenu>
              <DropdownMenu.Trigger>
                {(attributes) => {
                  return <Button icon={ChevronDownIcon} attributes={attributes} />;
                }}
              </DropdownMenu.Trigger>
              <DropdownMenu.Content>
                <DropdownMenu.Item>Copy link</DropdownMenu.Item>
                <DropdownMenu.Item>Update permissions</DropdownMenu.Item>
                <DropdownMenu.Item>Save to folder</DropdownMenu.Item>
              </DropdownMenu.Content>
            </DropdownMenu>
          </Button.Group>
        </View>
      </div>
    </Reshaped>
  );
}

Dependencies

More by reshaped

View all
  • Reshaped Toast

    Reshaped Toast

    9
  • Reshaped Calendar

    Reshaped Calendar

    9
  • Reshaped Progress indicator

    Reshaped Progress indicator

    7
  • Reshaped Context menu

    Reshaped Context menu

    7
  • Reshaped Checkbox

    Reshaped Checkbox

    7
  • Reshaped Autocomplete

    Reshaped Autocomplete

    7
  • Reshaped Pagination

    Reshaped Pagination

    6
  • Reshaped Carousel

    Reshaped Carousel

    6

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