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

Menu

Overflow Actions

Preview

Install

Add it with your package manager, or copy the source manually.

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/overflow-actions

Import the shared styles once in your application.

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

API Reference

primaryActions
readonly OverflowActionItem[]
Default—
overflowActions
readonly OverflowActionItem[]
Default—
v-model:expanded?
boolean
Defaultundefined
defaultExpanded?
boolean
Defaultfalse
@action?
(item: OverflowActionItem) => void
Default—
collapseOnAction?
boolean
Defaultfalse
size?
OverflowActionsSize

Default `md`.

Defaultmd
openLabel?
string
Default—
closeLabel?
string
Default—
labels?
Partial<typeof overflowActionsMessages>

Override any built-in string.

Default—
className?
string
Default—
classNames?
OverflowActionsClassNames
Default—
@expanded-change?
(value: boolean) => void
Default—
#icon?
{ item: OverflowActionItem }

Replaces an action's icon.

Default—

Updated