Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Button

Metallic Button

MetallicButton.vue

Install

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/button-metallic

Import the shared styles once in your application.

TSUsage
import MetallicButton from '@/components/beui/actions/MetallicButton.vue'
import '@/components/beui/styles.css'

API Reference

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

Stops the traveling reflection while preserving the chrome rim.

Defaultfalse

Button

ButtonBase.vue

Install

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/button-base

Import the shared styles once in your application.

TSUsage
import ButtonBase from '@/components/beui/ButtonBase.vue'
import '@/components/beui/styles.css'

API Reference

Button

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

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

Defaultfalse
hover?
boolean

Set false to drop the hover lift (stateful buttons keep only the press).

Defaulttrue
disabled?
boolean
Defaultfalse
type?
"button" | "submit" | "reset"
Defaultbutton
href?
string
Default—
@click?
(event: MouseEvent) => void
Default—

ButtonLink

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

Stateful Button

StatefulButton.vue

Install

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/button-stateful

Import the shared styles once in your application.

TSUsage
import StatefulButton from '@/components/beui/actions/StatefulButton.vue'
import '@/components/beui/styles.css'

API Reference

class?
string
Default—
size?
"sm" | "md" | "lg" | "icon"
Default—
labels?
Partial<StatefulButtonMessages>

Override any built-in string.

Default—
variant?
"primary" | "secondary" | "ghost" | "outline"
Default—
#icon?
slot

Shown after the idle label while the button is idle.

Default—
pressScale?
number
Default—
ripple?
boolean

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

Default—
state?
ButtonState
Default—
loadingText?
string
Default—
successText?
string
Default—
errorText?
string
Default—
disabled?
boolean
Default—
#default?
slot

The idle label.

Default—

Magnetic Button

MagneticButton.vue

Install

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/button-magnetic

Import the shared styles once in your application.

TSUsage
import MagneticButton from '@/components/beui/actions/MagneticButton.vue'
import '@/components/beui/styles.css'

API Reference

class?
string
Default—
size?
"sm" | "md" | "lg" | "icon"
Default—
variant?
"primary" | "secondary" | "ghost" | "outline"
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.(opens in a new tab)

Used in these Pro blocks

Updated