UI
alert
Displays an alert to the user
moises.ui.alert
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
title | string | No | Alert title |
description | string | No | Alert description |
ctaLabel | string | No | Alert CTA label |
ctaColor | string | No | Alert CTA color |
Returns:
Promise<void>
- Promise that resolves when the alert is closed
Usage Example
import { initMoisesExtension } from '@moises.ai/extension'
const useMoisesExtension = initMoisesExtension({
id: 'id',
name: 'name',
description: 'description',
icon: 'icon',
version: 'version',
author: 'author'
})
const { moises } = useMoisesExtension()
await moises.ui.alert({ title: "Notice", description: "Operation completed!", ctaLabel: "OK", ctaColor: "primary" })
This file is automatically generated. Do not edit manually.