Widgets

Inline confirm

The button becomes its own dialog. Nothing opens over the page and nothing shifts around it: 'Delete file' widens into 'Delete it? Delete / Keep', and after deleting the same footprint holds 'Deleted · Undo' with a burning timer — so the destructive path never needs a modal or a toast.

What it is

The button becomes its own dialog: 'Delete file' widens into 'Delete it? Delete / Keep', and after deleting the same footprint holds 'Deleted · Undo' with a burning timer. The destructive path with no modal and no toast — for admin panels, file managers, settings screens and any product tired of confirmation pop-ups. Rebuilt from bencho.dev.

Full library — live sample, numbers, prompt and source — is for clients. I have the password

Seen in

Lorenzo Cabra · Bencho (confirm) · block logic MIT