import { Alert, AlertTitle, AlertDescription } from "@combric/react";
Load the native stylesheet with @import "@combric/react/css";. This path does not require Tailwind.
Examples
Error alert
Import failed
Check the source file.
import { Alert, AlertDescription, AlertTitle } from "@combric/react";
export function Example() {
return <Alert tone="error"><AlertTitle>Import failed</AlertTitle><AlertDescription>Check the source file.</AlertDescription></Alert>;
}
Neutral alert
Ready to review
All required fields are complete.
import { Alert, AlertDescription, AlertTitle } from "@combric/react";
export function Example() {
return <Alert tone="neutral"><AlertTitle>Ready to review</AlertTitle><AlertDescription>All required fields are complete.</AlertDescription></Alert>;
}
Assertive live region
Payment failed
The latest invoice could not be processed.
import { Alert, AlertDescription, AlertTitle } from "@combric/react";
export function Example() {
return <Alert tone="error" live="assertive"><AlertTitle>Payment failed</AlertTitle><AlertDescription>The latest invoice could not be processed.</AlertDescription></Alert>;
}
Public API
Public exports
Name
Alert
AlertTitle
AlertDescription
Documented contracts
Property / capability
Published contract
tone
neutral | error
live
polite | assertive
Accessibility
Static by default; live semantics are added only when explicitly requested.
CSS and customization
Combric classes and canonical --combric-* variables provide the package presentation. Consumer className extends the required class; it does not replace the component contract.