You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
HerrHase 1f4eea72f5
5 months ago
example typo 5 months ago
src typo 5 months ago
.gitignore Initial commit 5 months ago
LICENSE Initial commit 5 months ago adding gif 5 months ago
package-lock.json init 5 months ago
package.json typo 5 months ago
webpack.mix.js init 5 months ago

Tiny Components - confirm

Created with Riot.js and using Plain-UI and Observable

A small modal to confirm or cancel an Action.



npm install @tiny-components\confirm --save

You can use it like this

Add tiny-confirm globally in an App. Open and Closing will be done by store.js

import TinyConfirm from './confirm.riot'
riot.register('tiny-confirm', TinyConfirm)

Use a function to open tiny-confirm and callbacks. "Cancel" is optional.

handleOpen() {

    // open
    store.trigger('open', {
        title: 'Question',
        content: 'Are you sure?'

    // handle confirm
    store.confirm(() => {


    // handle cancel
    store.cancel(() => {