Skip to content

Confirm Action

The .confirm method automatically binds a Cancel and Confirm UI.

javascript
const result = await Oura.confirm('Delete Workspace?', 'This action cannot be undone.');

if (result.isConfirmed) {
  Oura.success('Workspace Terminated!');
} else {
  Oura.info('Action canceled.');
}

Input Prompt

Capture direct user input elegantly without needing form structures!

javascript
const result = await Oura.prompt('Enter your email', 'We will send a reset link', 'email');

if (result.isConfirmed && result.value) {
  Oura.toast(`Link safely dispatched to ${result.value}`);
}

Released under the MIT License.