iamsatish4564

Prime Button

Buttons 66

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

    1.1K
  • Micro Expander

    Micro Expander

    357
  • Animated Profile Card

    Animated Profile Card

    140
  • Morph Button

    Morph Button

    114
  • Curtain Button

    Curtain Button

    77
  • Eclipse Button

    Eclipse Button

    42

More in Buttons

View all
  • Button

    Button

    12
  • Notification Button

    Notification Button

    115
  • Texture Button

    Texture Button

    105
  • HeroUI Button Group

    HeroUI Button Group

    2
  • App Store Button

    App Store Button

    481
  • Button

    Button

    78
  • Split Button

    Split Button

    16
  • Button

    Button

    5