An accessible button component built on Radix UI Slot and Motion for React with shadcn/ui variants, comprehensive sizes, and physics-based hover/tap scaling.
Made by AxylDefault primary Radix UI button with Motion spring scaling on hover and tap.
Installation
File Structure
Usage
With asChild (Slot Pattern)
Examples
Variants
All visual Radix button variants: default, secondary, destructive, outline, ghost, and link.
Sizes
Button size presets from extra small (xs) to large (lg).
With Icon
Button combined with leading or trailing Lucide icons.
Loading State
Disabled button showing an animated spinner.
Custom Motion Scaling
Customizable hoverScale and tapScale multipliers, with option to disable scaling.
Props
| Prop | Type | Default |
|---|---|---|
asChild? | boolean | false |
variant? | "default" | "outline" | "secondary" | "ghost" | "destructive" | "link" | "default" |
size? | "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | "default" |
hoverScale? | number | 1.05 |
tapScale? | number | 0.95 |
disableAnimation? | boolean | false |
className? | string | - |
Alert Dialog
An accessible alert dialog component built on Radix UI with smooth 3D perspective spring entrance and exit animations, customizable sizes, and media slots.
Checkbox
An accessible, stylable checkbox component built with Radix UI and Motion for React with spring-animated checkmark SVG drawing.
Built by Axyl. A motion-first component registry for React.
Last updated: 9/11/2026