Sora UI

Button · Base UI

An accessible button component built on Base UI and Motion for React with shadcn/ui variants, comprehensive sizes, and physics-based hover/tap scaling.

Made by Axyl
Loading...

Default primary button with Motion spring scaling on hover and tap.

Installation

npx shadcn@latest add @soralabs/base-button

File Structure

button.tsx

Usage

Examples

Variants

Loading...

All visual button variants: default, secondary, destructive, outline, ghost, and link.

Sizes

Loading...

Button size presets from extra small (xs) to large (lg).

With Icon

Loading...

Button combined with leading or trailing Lucide icons.

Loading State

Loading...

Disabled button showing an animated spinner.

Custom Motion Scaling

Loading...

Customizable hoverScale and tapScale multipliers, with option to disable scaling.

Props

PropTypeDefault
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
-

Built by Axyl. A motion-first component registry for React.

Last updated: 9/11/2026

On this page

Help keep SoraLabs moving.

Every contribution helps us build and maintain open-source tools for the community.

Sponsor on GitHub