MynaUI
No results found.
Theme
Toggle Theme (Dark)
Documentation
Getting Started
Design System
Changelog
FAQ
Legal
Icons
Elements
Accordion
Alert Dialog
Alert
Avatar Groups
Avatar
Badge
Breadcrumb
Button Groups
Button
Calendar
Combobox
Command
Context Menu
Data Table
Dialog
Drawer
Dropdown Menu
Menubar
Pagination
Popover
Progress
Rating
Sheet
Skeleton
Spinner
Table
Tabs
Toast
Toggle and Toggle Group
Tooltip
Forms
Checkbox
Date Picker
Input OTP
Input
Radio
Select
Slider
Switch
Textarea
Marketing
404
Banners
Blog List
Blog Post
Call to Action
Cookies
FAQ
Features
Footer
Header
Hero
Newsletters
Statistics
Testimonial Logos
Application
App Headers
App Sheets
Application Dialogs
Card Headers
Cards
Containers
Dividers
Empty States
Forgot Password
Login
Notifications
Registration
Section Headers
Documentation
  • Getting Started
  • Copybook New
  • Design System
  • Icons
  • Changelog
  • Legal
  • Figma
  • Request Components
  • Request Icons
Elements
  • Accordion
  • Alert Dialog
  • Alert
  • Avatar Groups
  • Avatar
  • Badge
  • Breadcrumb
  • Button Groups
  • Button
  • Calendar
  • Combobox
  • Command
  • Context Menu
  • Data Table
  • Dialog
  • Drawer
  • Dropdown Menu
  • Menubar
  • Pagination
  • Popover
  • Progress
  • Rating
  • Sheet
  • Skeleton
  • Spinner
  • Table
  • Tabs
  • Toast
  • Toggle and Toggle Group
  • Tooltip
Forms
  • Checkbox
  • Date Picker
  • Input OTP
  • Input
  • Radio
  • Select
  • Slider
  • Switch
  • Textarea
Marketing
  • 404
  • Banners
  • Blog List
  • Blog Post
  • Call to Action
  • Cookies
  • FAQ
  • Features
  • Footer
  • Header
  • Hero
  • Newsletters
  • Statistics
  • Testimonial Logos
Application
  • App Headers
  • App Sheets
  • Application Dialogs
  • Card Headers
  • Cards
  • Containers
  • Dividers
  • Empty States
  • Forgot Password
  • Login
  • Notifications
  • Registration
  • Section Headers
Newsletter

Get the latest news and updates from MynaUI

Subscribe for Updates

Alert

Alerts are used to communicate a state that affects a system, feature, or page.

import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
import { DangerTriangle, InfoCircle } from "@mynaui/icons-react";

export default function Alert1() {
  return (
    <>
      <Alert>
        <InfoCircle className="size-4" />
        <AlertTitle>You have a new invoice due.</AlertTitle>
        <AlertDescription>
          This is the alert description that shows some information.
        </AlertDescription>
      </Alert>
      <Alert variant="destructive">
        <DangerTriangle className="size-4" />
        <AlertTitle>Something went wrong with your submission.</AlertTitle>
        <AlertDescription>
          Please check your connection and try again. If the problem persists,
          contact support.
        </AlertDescription>
      </Alert>
    </>
  );
}
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";

export default function Alert2() {
  return (
    <>
      <Alert>
        <AlertTitle>You have a new invoice due.</AlertTitle>
        <AlertDescription>
          This is the alert description that shows some information.
        </AlertDescription>
      </Alert>
      <Alert variant="destructive">
        <AlertTitle>Something went wrong with your submission.</AlertTitle>
        <AlertDescription>
          Please check your connection and try again. If the problem persists,
          contact support.
        </AlertDescription>
      </Alert>
    </>
  );
}
import { Alert, AlertTitle } from "@/components/ui/alert";
import { DangerTriangle, InfoCircle } from "@mynaui/icons-react";

export default function Alert3() {
  return (
    <>
      <Alert>
        <InfoCircle className="size-4" />
        <AlertTitle>You have a new invoice due.</AlertTitle>
      </Alert>
      <Alert variant="destructive">
        <DangerTriangle className="size-4" />
        <AlertTitle>Something went wrong with your submission.</AlertTitle>
      </Alert>
    </>
  );
}
import { Alert, AlertTitle } from "@/components/ui/alert";

export default function Alert4() {
  return (
    <>
      <Alert>
        <AlertTitle>You have a new invoice due.</AlertTitle>
      </Alert>
      <Alert variant="destructive">
        <AlertTitle>Something went wrong with your submission.</AlertTitle>
      </Alert>
    </>
  );
}
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
import { DangerTriangle, InfoCircle } from "@mynaui/icons-react";

export default function Alert5() {
  return (
    <>
      <Alert>
        <InfoCircle className="size-4" />
        <AlertTitle>You have a new invoice due.</AlertTitle>
        <AlertDescription>
          Do not miss out on the opportunity to pay your invoice. It&apos;s due
          in 3 days.
          <a
            href="#"
            className="inline-flex text-sm font-medium underline text-foreground"
          >
            Pay Now
          </a>
        </AlertDescription>
      </Alert>
      <Alert variant="destructive">
        <DangerTriangle className="size-4" />
        <AlertTitle>Something went wrong with your submission.</AlertTitle>
        <AlertDescription>
          Please check your connection and try again. If the problem persists,
          contact support.
          <a
            href="#"
            className="inline-flex text-sm font-medium text-destructive underline"
          >
            Retry
          </a>
        </AlertDescription>
      </Alert>
    </>
  );
}

Not affiliated with Figma, TailwindCSS or shadcn/ui.

X (Twitter) Logo Dribbble Logo Figma Logo