Button

Metallic Button

metallic.tsx

Install

$ bunx --bun shadcn add @beui/button-metallic

API Reference

className?
string
Default—
size?
"sm" | "md" | "lg" | "icon"
Defaultmd
pressScale?
number
Default—
paused?
boolean

Stops the traveling reflection while preserving the chrome rim.

Defaultfalse

Button

base.tsx

Install

$ bunx --bun shadcn add @beui/button-base

API Reference

Button

className?
string
Default—
size?
"sm" | "md" | "lg" | "icon"
Defaultmd
variant?
"outline" | "ghost" | "primary" | "secondary"
Defaultprimary
pressScale?
number
Default0.93
ripple?
boolean

Spawn a Material-style ripple from the press point. Off by default.

Defaultfalse

ButtonLink

className?
string
Default—
size?
"sm" | "md" | "lg" | "icon"
Defaultmd
variant?
"outline" | "ghost" | "primary" | "secondary"
Defaultprimary
pressScale?
number
Default0.93

Stateful Button

stateful.tsx

Install

$ bunx --bun shadcn add @beui/button-stateful

API Reference

className?
string
Default—
size?
"sm" | "md" | "lg" | "icon"
Default—
variant?
"outline" | "ghost" | "primary" | "secondary"
Default—
icon?
ReactNode
Default—
pressScale?
number
Default—
ripple?
boolean

Spawn a Material-style ripple from the press point. Off by default.

Default—
state?
"error" | "success" | "loading" | "idle"
Defaultidle
loadingText?
ReactNode
DefaultLoading
successText?
ReactNode
DefaultDone
errorText?
ReactNode
DefaultTry again

Magnetic Button

magnetic.tsx

Install

$ bunx --bun shadcn add @beui/button-magnetic

API Reference

className?
string
Default—
size?
"sm" | "md" | "lg" | "icon"
Default—
variant?
"outline" | "ghost" | "primary" | "secondary"
Default—
pressScale?
number
Default—
ripple?
boolean

Spawn a Material-style ripple from the press point. Off by default.

Default—
strength?
number

Magnetic pull strength. Default 0.25.

Default0.25
magneticClassName?
string

Class applied to the magnetic wrapper.

Default—
Also on React Native. Spring press, ripple, icons and a stateful variant.

Updated