murad-sinatra

Mors Button

Buttons

About

A themeable button with six visual variants (primary, secondary, subtle, ghost, destructive, link), size/pill/block options, a built-in loading spinner, plus matching IconButton and segmented ButtonGroup variants.

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

Code

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

Usage.tsx

import { Button } from "@/components/ui/button";
import { useState } from "react";

export default function ButtonLoadingDemo() {
  const [loading, setLoading] = useState(false);

  const runLoading = () => {
    setLoading(true);
    setTimeout(() => setLoading(false), 1400);
  };

  return (
    <div
      className="flex flex-wrap items-center gap-3 p-10"
      style={{
        background: "var(--mors-color-canvas)",
        color: "var(--mors-color-text)",
      }}
    >
      <Button loading={loading} onClick={runLoading}>
        Save changes
      </Button>
      <Button variant="secondary" loading>
        Always loading
      </Button>
    </div>
  );
}

More by murad-sinatra

View all
  • Event Calendar

    Event Calendar

    3
  • Table

    Table

    2
  • Command Palette

    Command Palette

    1
  • Drawer

    Drawer

    1
  • Toggles

    Toggles

    1
  • Number Field

    Number Field

    1
  • Tooltip

    Tooltip

  • Popover

    Popover

More in Buttons

View all
  • Button

    Button

    5
  • Texture Button

    Texture Button

    97
  • Button Group

    Button Group

  • Eclipse Button

    Eclipse Button

    39
  • Button

    Button

    4
  • HeroUI Button Group

    HeroUI Button Group

  • Base Button

    Base Button

    4
  • App Store Button

    App Store Button

    458