Button

Action button with visual variants, compact sizes, and loading support.

Import/Installation

import { Button } from "@lottiefiles/creator-plugins-ui";

Preview

Usage

import { useState } from "react";

const [loading, setLoading] = useState(false);

<Button>Default</Button>
<Button variant="outline">Outline</Button>
<Button variant="destructive">Delete</Button>
<Button
  loading={loading}
  onClick={() => {
    setLoading(true);
    setTimeout(() => setLoading(false), 1200);
  }}
>
  Save
</Button>

Props

PropTypeDefaultRequiredDescription
variant"default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "link-muted""default"NoThe visual style of the button.
size"sm" | "default" | "icon""default"NoThe size of the button.
renderReact.ReactElementNoRender the button as a different element (e.g. an anchor tag).
loadingbooleanfalseNoIf true, the button shows a spinner and is disabled.

Built on Base UI Button. See their docs for primitive-level details.

Last updated: August 5, 2026 at 11:47 AMEdit this page