Skip to content

ActionSheet

A bottom-sheet menu that displays a list of actions for the user to choose from. Commonly used for share, edit, and delete operations.

Basic Usage

vue
<script setup>
import { ref } from 'vue'
const show = ref(false)
const actions = [
  { name: 'Share', value: 'share' },
  { name: 'Edit', value: 'edit' },
  { name: 'Delete', value: 'delete', color: 'red' },
]
</script>

<template>
  <see-action-sheet
    v-model:show="show"
    title="Choose an action"
    :actions="actions"
    @select="onSelect"
  />
</template>

Props

PropTypeDefaultDescription
showbooleanfalseWhether to show the action sheet
titlestring''Title text
actionsobject[][]Array of action items { name, value, color?, disabled? }
cancelTextstring'Cancel'Cancel button text
isShowCancelBtnbooleantrueWhether to show cancel button
beforeClosefunctionundefinedCallback before closing, return false to prevent close

Events

EventParametersDescription
onSelect(action: object, index: number)Triggered when an action is selected
onCancel-Triggered when cancel button is clicked
onOpen-Triggered when action sheet opens
onClose-Triggered when action sheet closes
update:show(value: boolean)Triggered when show state changes

Liao ICP No. 2025070134