Factory for Good

Button

Displays a button or a component that looks like a button.

Installation

pnpm dlx shadcn@latest add @ffg/button

Usage

import { Button } from "@/components/ui/button";
<Button>Primary</Button>
<Button variant="secondary">Secondary</Button>
<Button variant="ghost">Ghost</Button>
<Button variant="destructive">Destructive</Button>
<Button variant="link">Link</Button>
VariantRestHoverActive
default (primary)Primary fillFill at 90%Primary fill
secondaryHairline border, secondary textPrimary border and textPrimary fill
ghostSecondary text, no boxBackground fill, hairline border, primary textPrimary text
destructiveDestructive at 10%Destructive at 20%Destructive at 10%
linkSecondary textPrimary text, underlinedPrimary text
SizeHeightLabelIcon
default481424
sm421321
lg541424
icon48 × 48—24
icon-sm42 × 42—21

On this page