Documentation
Button
Use for primary actions, secondary actions, toolbar controls, and icon buttons
Button is the core action primitive in @downcity/ui.
Import
import { Button } from "@downcity/ui";Basic Example
Loading preview…
Variants
Loading preview…
Sizes
Loading preview…
Icon Button
Loading preview…
An explicit size always takes precedence, including size="default" on an icon-only button. Without size, a single React component child uses the icon size; other content uses default. Set an icon-* size explicitly for a fixed toolbar footprint.
Usage Notes
- Use
size="sm"orsize="default"for page-level actions - Use
variant="ghost"for toolbar controls - Use
variant="destructive"for destructive actions - Prefer
icon-*sizes instead of hand-writtenw-* h-*
Related Exports
ButtonbuttonVariants