Button
Actions · upstream shadcn/ui, GitHub theme
Displays a button or a component that looks like a button.
import { Button } from "@/components/ui/button"
<Button>…</Button>Tokens it uses
--backgroundfill#FFFFFF--foregroundtext#1F2328--primaryfill#1F883D--primary-foregroundtext#FFFFFF--secondaryfill#F6F8FA--secondary-foregroundtext#1F2328--mutedfill#F6F8FA--destructivefill#CF222E--borderborder#D1D9E0--ringfocus ring#0969DAShape and type: --ds-radius-button --ds-button-weight --ds-button-size --ds-press-scale --ds-focus-width --ds-focus-style --ds-focus-offset --ds-disabled-opacity --ds-shadow-button --ds-shadow-button-hover --ds-button-height --ds-button-px --ds-button-height-sm --ds-button-height-lg --ds-button-size-lg