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

Menu

Action Swap

Cascade

ActionSwap.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/action-swap-cascade

Import the shared styles once in your application.

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

API Reference

ActionSwapCascadeButton

defaultValue?
string
Default—
class?
string
Default—
size?
"sm" | "md" | "lg" | "icon"
Defaultmd
v-model?
string
Default—
items
readonly ActionSwapItem[]
Default—
variant?
"primary" | "secondary" | "ghost" | "outline"
Defaultsecondary
iconOnly?
boolean
Defaultundefined
cycle?
boolean
Defaulttrue
disabled?
boolean
Defaultfalse
@value-change?
(value: string, item: ActionSwapItem) => void
Default—
#icon?
{ item: ActionSwapItem }

Icon for the current item.

Default—
#default?
{ item: ActionSwapItem }

Label for the current item. Defaults to its `label`.

Default—

ActionSwapCascadeText

class?
string
Default—
value
string

Identity of the current content. Changing it plays the swap.

Default—
#default?
slot

The label.

Default—

ActionSwapCascadeIcon

class?
string
Default—
value
string

Identity of the current content. Changing it plays the swap.

Default—
#default?
slot

The icon.

Default—

Blur

ActionSwap.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/action-swap-blur

Import the shared styles once in your application.

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

API Reference

ActionSwapBlurButton

defaultValue?
string
Default—
class?
string
Default—
size?
"sm" | "md" | "lg" | "icon"
Defaultmd
v-model?
string
Default—
items
readonly ActionSwapItem[]
Default—
variant?
"primary" | "secondary" | "ghost" | "outline"
Defaultsecondary
iconOnly?
boolean
Defaultundefined
cycle?
boolean
Defaulttrue
disabled?
boolean
Defaultfalse
@value-change?
(value: string, item: ActionSwapItem) => void
Default—
#icon?
{ item: ActionSwapItem }

Icon for the current item.

Default—
#default?
{ item: ActionSwapItem }

Label for the current item. Defaults to its `label`.

Default—

ActionSwapBlurText

class?
string
Default—
value
string

Identity of the current content. Changing it plays the swap.

Default—
#default?
slot

The label.

Default—

ActionSwapBlurIcon

class?
string
Default—
value
string

Identity of the current content. Changing it plays the swap.

Default—
#default?
slot

The icon.

Default—

Roll

ActionSwap.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/action-swap-roll

Import the shared styles once in your application.

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

API Reference

ActionSwapRollButton

defaultValue?
string
Default—
class?
string
Default—
size?
"sm" | "md" | "lg" | "icon"
Defaultmd
v-model?
string
Default—
items
readonly ActionSwapItem[]
Default—
variant?
"primary" | "secondary" | "ghost" | "outline"
Defaultsecondary
iconOnly?
boolean
Defaultundefined
cycle?
boolean
Defaulttrue
disabled?
boolean
Defaultfalse
@value-change?
(value: string, item: ActionSwapItem) => void
Default—
#icon?
{ item: ActionSwapItem }

Icon for the current item.

Default—
#default?
{ item: ActionSwapItem }

Label for the current item. Defaults to its `label`.

Default—

ActionSwapRollText

class?
string
Default—
value
string

Identity of the current content. Changing it plays the swap.

Default—
#default?
slot

The label.

Default—

ActionSwapRollIcon

class?
string
Default—
value
string

Identity of the current content. Changing it plays the swap.

Default—
#default?
slot

The icon.

Default—

Updated