saturation/ui
DocsComponentsBlocksPages

Sections

IntroductionComponentsInstallationTheming

Components

ComponentsAccordionAI Chat InputAlertAnimated GroupAnimated NumberAvatarBadgeBorder TrailBreadcrumbButtonButton GroupCalendar PickerCardChartCheckboxCollapsibleComboboxCommandContext MenuCredit CardData TableDate PickerDialogDropdown MenuEmptyFieldFiltersFull CalendarGlow EffectInputInput GroupInput OTPItemKanbanKbdMenubarNovel EditorPaginationProgressProgressive BlurRadio GroupSelectSeparatorSheetSkeletonSliderSonnerSpinnerSpotlightSwitchTableTabsText EffectText ShimmerTextareaToggleToggle GroupTreeTypography
Docs/Components/Button

Button

A button component with multiple variants, sizes, and shapes.

Loading...

Installation

pnpm dlx shadcn@latest add @saturation/button

Usage

import { Button } from "@/components/ui/button"
<Button variant="default">Click me</Button>

Examples

Secondary

Loading...
Secondary variant button.

Outline

Loading...
Outline variant button.

Ghost

Loading...
Ghost variant button.

With Icon

Loading...
Button with icon and text.

Icon

Loading...
Icon-only buttons in multiple sizes.

Circle

Loading...
Circle shape button variants.

Loading

Loading...
Button with loading state.

Sizes

Loading...
Button size options from small to icon-only.

Shapes

Saturation extension — not in base shadcn:

  • default — Standard border radius
  • pill — Fully rounded
  • square — No border radius
  • circle — Perfect circle (use with icon sizes)

API Reference

PropTypeDefaultDescription
variant"default" | "destructive" | "outline" | "secondary" | "ghost" | "link""default"The visual style variant of the button.
size"default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg""default"The size of the button.
shape"default" | "pill" | "square" | "circle""default"The shape of the button. Saturation extension.
asChildbooleanfalseRender as child element via Radix Slot.

On This Page

  • Installation
  • Usage
  • Examples
  • Secondary
  • Outline
  • Ghost
  • With Icon
  • Icon
  • Circle
  • Loading
  • Sizes
  • Shapes
  • API Reference