Alert1
mynaui/alert1FreeComponent
Alerts are used to communicate a state that affects a system, feature, or page.
Install it
npx shadcn@latest add https://mynaui.com/r/alert1.jsonSource
1import { Alert, AlertDescription, AlertTitle } from "@/ui/alert";2import { DangerTriangle, InfoCircle } from "@mynaui/icons-react";34export default function Alert1() {5 return (6 <>7 <Alert>8 <InfoCircle className="size-4" />9 <AlertTitle>You have a new invoice due.</AlertTitle>10 <AlertDescription>11 This is the alert description that shows some information.12 </AlertDescription>13 </Alert>14 <Alert variant="destructive">15 <DangerTriangle className="size-4" />16 <AlertTitle>Something went wrong with your submission.</AlertTitle>17 <AlertDescription>18 Please check your connection and try again. If the problem persists,19 contact support.20 </AlertDescription>21 </Alert>22 </>23 );24}
What it pulls in
npm packages
Other registry items
Files it writes
More from mynaui
All 346 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordion1accordion1 | mynaui | Components | Free | no deps · 2 files | |
| Accordion2accordion2 | mynaui | Components | Free | no deps · 2 files | |
| Accordion3accordion3 | mynaui | Components | Free | no deps · 2 files | |
| Accordion4accordion4 | mynaui | Components | Free | 1 dep · 2 files | |
| Accordion5accordion5 | mynaui | Components | Free | 1 dep · 2 files | |
| Alert dialog1alert-dialog1 | mynaui | Components | Free | no deps · 2 files | |
| Alert dialog2alert-dialog2 | mynaui | Components | Free | 1 dep · 2 files | |
| Alert dialog3alert-dialog3 | mynaui | Components | Free | 1 dep · 2 files |
