iamsatish4564

Prime Button

Buttons 63

About

Here is Prime Button component

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

Code

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

Usage.tsx

'use client';

import { useState } from 'react';
import { PrimeButton } from '@/components/ui/prime-button';

export default function DemoPrimeButtonBasic() {
const [status, setStatus] = useState<'idle' | 'loading' | 'success' | 'error'>('idle');

const handleClick = () => {
  setStatus('loading');
  
  // Simulate an async API call
  setTimeout(() => {
    setStatus('success');
  }, 2000);
};

return (
  <div className="flex min-h-[200px] w-full items-center justify-center rounded-lg border border-dashed bg-background p-8">
    <PrimeButton
      actionState={status}
      onClick={handleClick}
      className="w-40"
    >
      Save Changes
    </PrimeButton>
  </div>
);
}

Dependencies

More by iamsatish4564

View all
  • Portfolio and Image Gallery

    Portfolio and Image Gallery

    1K
  • Micro Expander

    Micro Expander

    352
  • Animated Profile Card

    Animated Profile Card

    136
  • Morph Button

    Morph Button

    110
  • Curtain Button

    Curtain Button

    76
  • Eclipse Button

    Eclipse Button

    39

More in Buttons

View all
  • Button

    Button

    5
  • App Store Button

    App Store Button

    453
  • Button

    Button

    47
  • Texture Button

    Texture Button

    92
  • Button

    Button

    4
  • Split Button

    Split Button

    14
  • Button

    Button

    32
  • Button Group

    Button Group

    37