Viora LogoViora UI
Login

Alert

A versatile alert component with customizable icons and actions.

demo-alert.tsx
Loading source code...

Installation

pnpm dlx viora-ui add alert
npx viora-ui add alert
yarn viora-ui add alert
bunx --bun viora-ui add alert

Usage

import { Alert } from "viora-ui";
import { Alert } from "viora-ui";

export default function AlertDemo() {
  return (
    <div className="flex min-h-[350px] w-full items-center justify-center p-6">
      <Alert />
    </div>
  );
}

API Reference

Alert

PropTypeDefaultDescription
className?string""Additional CSS classes for custom styling.
close?booleanfalseConfiguration for close.
children?React.ReactNode-Content or child elements to render.

AlertIcon

PropTypeDefaultDescription
childrenReact.ReactNode-Content or child elements to render.

AlertTitle

PropTypeDefaultDescription
childrenReact.ReactNode-Content or child elements to render.

AlertToolbar

PropTypeDefaultDescription
childrenReact.ReactNode-Content or child elements to render.

Button

PropTypeDefaultDescription
variant?'primary' | 'inverse' | 'outline'-Visual style variant.
mode?'default' | 'link'-Configuration for mode.
underlined?'none' | 'solid'-Configuration for underlined.
size?'sm' | 'md' | 'lg'-Size option for the component.
className?string""Additional CSS classes for custom styling.
childrenReact.ReactNode-Content or child elements to render.

Built by Otis

Last updated: 9/13/2026