Icon Button
This source is documented by the existing examples linked below.
src/components/ui/icon-button.tsxUsage contract
- Use IconButton or iconButtonVariants; every icon-only control needs an accessible name.
Examples
- icon-button
<div class="flex items-center gap-3"> <button type="button" data-c="icon-button" class={iconButtonVariants()} aria-label={t(locale, 'ds.close')}><Zeichen icon="close" size={16} /></button> <button type="button" data-c="icon-button" class={iconButtonVariants({size: 'sm'})} aria-label="Zoom"><Zeichen icon="expand" size={16} /></button> </div>
API
Extracted from the source with the TypeScript parser. Inherited and imported types remain references; implementation is authoritative.
IconButton({className, size, ...props}: React.ComponentProps<'button'> & VariantProps<typeof iconButtonVariants>)iconButtonVariants (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/en/work/[id].astro
- src/components/case/CasePage.astro
- src/components/ShortcutIsland.astro
- src/components/ui/icon-button.tsx
Documentation
- src/pages/design-system/storybook-patterns.astro
- src/components/ui/SystemWindow.astro
- src/components/ui/icon-button.tsx
Preview
- src/pages/vorschlag/cases/[id].astro
- src/components/case/CasePage.astro
- src/components/ShortcutIsland.astro
- src/components/ui/icon-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.
Dependencies
reactclass-variance-authority@/lib/utils·src/lib/utils.ts