SaaS Button

SaaS-specific button with domain variants

SaaSPrimitives

Overview

The Button component supports six visual variants and four sizes, plus loading and disabled states. It covers all common SaaS interaction patterns from primary calls-to-action to subtle ghost actions.

Usage

import { Button } from "@leanicon/web-builder-library/saas";

<Button variant="default" size="default">
  Get started
</Button>;

Variants

Default

Dark

Destructive

Outline

Secondary

Ghost

Small

Large

Loading

Disabled

Props

NameTypeDefaultRequiredDescription
asChildbooleanfalseNoIf true, the button will render as its child element (using Radix UI Slot). Useful for rendering a custom component as a button.
loadingbooleanfalseNoIf true, shows a loading spinner and disables the button.
size"default" | "sm" | "lg" | "icon" | null—No
variant"link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null—No