Confirmation

April 20, 2026 ยท View on GitHub

License Stable Downloads Vue JavaScript npm Issues Merge Requests

Description

Confirmation dropdown primitives and Bulma actions for Enso UI.

Installation

Install the package:

yarn add @enso-ui/confirmation

This package is also available through the full enso-ui workspace bundle.

Features

  • ships a core confirmation popper primitive and a Bulma-styled action wrapper
  • uses v-tooltip dropdowns to anchor confirm/cancel actions to any trigger slot
  • exposes explicit cancel and confirm callbacks to slot content

Usage

<script setup>
import Confirmation from '@enso-ui/confirmation/bulma';
</script>

<Confirmation @confirm="destroy">
    <button class="button is-danger">Delete</button>
</Confirmation>

API

Confirmation

Bulma-flavoured wrapper with built-in icon buttons for cancel and confirm.

Import: @enso-ui/confirmation/bulma

Events:

  • cancel
  • confirm

CoreConfirmation

Low-level confirmation popper primitive.

Import: @enso-ui/confirmation/index.js

Events:

  • cancel
  • confirm

Slots:

  • default trigger content.
  • cancel receives { cancel }.
  • confirm receives { confirm }.

Depends On

Contributions

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!

License

MIT