When to use
Use an alert only for important decisions that need an answer right away, like confirming a delete or a lost connection. Keep the title short and give at most two or three buttons.
Props
| Prop | Values | Default | Description |
|---|---|---|---|
data-layouton .ios-alert__actions | "side" | stacked | Two buttons side by side. |
data-roleon .ios-alert__action | "cancel" | – | Cancel button. |
data-preferredon .ios-alert__action | boolean | false | Bold default action. |
data-destructiveon .ios-alert__action | boolean | false | Red action. |