Alert

Alert

Displays a callout for user attention.

Usage

It's mandatory to wrap the whole component with the Tailwind tag.

const { Tailwind } = VM.require("uiisnear.near/widget/tailwind");
 
const { Alert, AlertTitle, AlertDescription } = VM.require(
  "uiisnear.near/widget/alert"
);
 
if (Tailwind == undefined) return "";
<Tailwind>
  <Alert>
    <RocketIcon />
    <AlertTitle>Heads up!</AlertTitle>
    <AlertDescription>
      You can add components and dependencies to your app using the cli.
    </AlertDescription>
  </Alert>
</Tailwind>

API Reference

Classnames

Classnames available to customize the component.

FunctionClassname
AlertTitlealertTitleClassname
AlertDescriptionalertDescriptionClassname

Variants

Variants available and how to use them.

AttributeValue
variant"default" | "destructive"

Examples

Default

Destructive