Button
This source is documented by the existing examples linked below.
src/components/ui/button.tsxUsage contract
- Actions use Button; navigation uses buttonVariants on a native anchor. Pass type="button" for non-submit actions.
Examples
- buttons
<Button type="button" variant="secondary" size="sm">Save</Button> <Button type="button" aria-busy="true" disabled>Saving…</Button>
API
Extracted from the source with the TypeScript parser. Inherited and imported types remain references; implementation is authoritative.
Button({className, variant, size, asChild = false, ...props}: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {asChild?: boolean})buttonVariants (see source initializer)Source usage
Website reference
This is static source evidence. A reachable module may contain conditional or unused branches. External consumers and staged static pages are outside this scan. No status authorizes deletion.
Website
- src/pages/about/index.astro
- src/components/site/about/AboutR1.astro
- src/components/ui/button.tsx
Documentation
- src/pages/design-system/storybook-extras.astro
- src/components/ui/button.tsx
Preview
- src/pages/vorschlag/decision-lab.astro
- src/components/ui/button.tsx
Consumers in source
Direct static, dynamic and type imports. Imports do not prove that a branch renders or that a proposal is published.
- src/components/case/CaseBlock.astro:8 import
- src/components/case/CaseHero.astro:19 import
- src/components/ContactBlock.astro:2 import
- src/components/CvPreview.astro:3 import
- src/components/ds/CompositionD.astro:15 import
src/components/ds/control-recipes.ts:2import- src/components/ds/PrimitiveDemos.astro:3 import
- src/components/ds/TcgPreview.tsx:7 import
- src/components/ds/WorkbenchTools.astro:4 import
- src/components/islands/DsDialogDemo.tsx:2 import
- src/components/islands/DsTooltipDemo.tsx:2 import
- src/components/islands/PanelMenu.tsx:4 import
- src/components/islands/PreRead.tsx:3 import
- src/components/secret/SecretBooster.astro:4 import
- src/components/secret/SecretRoom.astro:4 import
- src/components/SimpleExplanation.astro:4 import
- src/components/site/about/AboutR1.astro:8 import
- src/components/site/mix/DecisionObject.tsx:14 import
- src/components/site/mix/Person.astro:14 import
- src/components/site/pages/HomeBPage.astro:12 import
- src/components/site/SiteHero.astro:4 import
- src/components/site/work/WorkCatalogue.astro:5 import
- src/components/site/work/WorkCity.astro:7 import
- src/components/site/work/WorkCityPage.astro:13 import
- src/components/site/work-cards-lab/CaseLink.astro:3 import
- src/components/SiteHeader.astro:4 import
src/pages/design-system/storybook-extras.astro:6importsrc/pages/design-system/storybook-patterns.astro:9importsrc/pages/design-system/storybook-themes.astro:5importsrc/pages/vorschlag/decision-lab.astro:8importsrc/pages/vorschlag/decision-refs.astro:7importsrc/pages/vorschlag/home-d.astro:7importsrc/pages/vorschlag/home-e.astro:9importsrc/pages/vorschlag/home-j.astro:10import
Dependencies
react@radix-ui/react-slotclass-variance-authority@/lib/utils·src/lib/utils.ts