Shadix UIAction Button

Action Button

A customizable action button component for shadcn/ui. Built with async function handling, and interactive loading states.

Who Developed This Component:

Installation

GitHub
pnpm dlx shadcn@latest add @shadix-ui/action-button

Usage

Basic Usage

import ActionButton from '@/registry/new-york/components/action-button/action-button';

const ActionButtonDemo = () => {
    return (
        <ActionButton onConfirm={() => {}} popupContent={<div>This is a popup</div>}>
            Click Me
        </ActionButton>
    );
};

With Variants

import ActionButton from '@/components/ui/action-button';

const ActionButtonDemo = () => {
    return (
        <ActionButton variant="outline" onConfirm={() => {}} popupContent={<div>This is a popup</div>}>
            Click Me
        </ActionButton>
    );
};

Disabled

import ActionButton from '@/components/ui/action-button';

const ActionButtonDemo = () => {
    return (
        <ActionButton onConfirm={() => {}} popupContent={<div>This is a popup</div>} disabled>
            Click Me
        </ActionButton>
    );
};

Props

Built by Gihan (apix-js) for Shadcn at Vercel. Source code on GitHub.