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

Menu

Animated CTA Buttons

Expanding Arrow Button

ExpandingArrowButton.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/expanding-arrow-button

Import the shared styles once in your application.

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

API Reference

className?
string
Default—
accentClassName?
string
Default—
labelClassName?
string
Default—
disabled?
boolean
Default—

Hold Action Button

HoldActionButton.vue

Release early to cancel

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/hold-action-button

Import the shared styles once in your application.

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

API Reference

type?
"vertical" | "horizontal"

Fill direction: bottom-up, or left-to-right.

Defaultvertical
className?
string
Default—
labels?
Partial<HoldActionButtonMessages>

Override any built-in string.

Default—
labelClassName?
string
Default—
holdingLabel?
string
Default—
completeLabel?
string
Default—
holdDuration?
number

How long the fill takes to cross the button, in ms.

Default1600
@hold-complete?
() => void
Default—
fillClassName?
string
Default—
direction?
"vertical" | "horizontal"

Alias kept for the existing Vue demos and docs: `horizontal` fills left-to-right.

Default—
disabled?
boolean
Default—
#default?
slot

Resting label. A plain string also names the button for assistive technology.

Default—
#holdingLabel?
slot

Replaces the \"holding\" text; wins over the `holdingLabel` prop.

Default—
#completeLabel?
slot

Replaces the \"complete\" text; wins over the `completeLabel` prop.

Default—

Slide Action Button

SlideActionButton.vue

Drag the arrow to the end

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/slide-action-button

Import the shared styles once in your application.

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

API Reference

completeLabel?
string
Default—
threshold?
number

Fraction of the track the thumb must reach to complete.

Default.82
resetDelay?
number

How long the completed state lasts before the thumb slides back, in ms. A negative value keeps it.

Default1200
@complete?
() => void
Default—
thumbClassName?
string
Default—
fillClassName?
string
Default—
labels?
Partial<SlideActionButtonMessages>

Override any built-in string.

Default—
className?
string
Default—
label?
string

Track label; the slot wins when both are set.

Default—
disabled?
boolean
Default—
#default?
slot

Track label. A plain string also names the thumb for assistive technology.

Default—
#completeLabel?
slot

Shown on the track once the slide completes; wins over the `completeLabel` prop.

Default—

Updated