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

Menu

Button

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
Also on React Native. Spring press, ripple, icons and a stateful variant.(opens in a new tab)

Used in these Pro blocks

Updated