Feedback
Alert
Inline messages in four tones.
Tones
Payment received
₹4,200 from Acme Ltd landed in your account.
Card expires soon
Update it before 1 January.
Sync failed
We’ll retry in 5 minutes.
<div class="og-alert og-alert--success" role="status"><p class="og-alert__title">Payment received</p><p class="og-alert__description">₹4,200 from Acme Ltd landed in your account.</p></div>
<div class="og-alert og-alert--warning" role="status"><p class="og-alert__title">Card expires soon</p><p class="og-alert__description">Update it before 1 January.</p></div>
<div class="og-alert og-alert--danger" role="alert"><p class="og-alert__title">Sync failed</p><p class="og-alert__description">We’ll retry in 5 minutes.</p></div>React
import { Alert } from '@og-ui/react';
<Alert variant="warning" title="Card expires soon">Update it before 1 January.</Alert>In every theme
Clean SaaS
Payment received
₹4,200 from Acme Ltd landed in your account.
Card expires soon
Update it before 1 January.
Sync failed
We’ll retry in 5 minutes.
Glassmorphism 2.0
Payment received
₹4,200 from Acme Ltd landed in your account.
Card expires soon
Update it before 1 January.
Sync failed
We’ll retry in 5 minutes.
Liquid glass
Payment received
₹4,200 from Acme Ltd landed in your account.
Card expires soon
Update it before 1 January.
Sync failed
We’ll retry in 5 minutes.
Neumorphism / Soft UI
Payment received
₹4,200 from Acme Ltd landed in your account.
Card expires soon
Update it before 1 January.
Sync failed
We’ll retry in 5 minutes.
Claymorphism
Payment received
₹4,200 from Acme Ltd landed in your account.
Card expires soon
Update it before 1 January.
Sync failed
We’ll retry in 5 minutes.
Neubrutalism
Payment received
₹4,200 from Acme Ltd landed in your account.
Card expires soon
Update it before 1 January.
Sync failed
We’ll retry in 5 minutes.
Aurora / mesh gradient
Payment received
₹4,200 from Acme Ltd landed in your account.
Card expires soon
Update it before 1 January.
Sync failed
We’ll retry in 5 minutes.
Keyboard and screen readers
- Not focusable. role="status" is announced politely; use role="alert" only for urgent errors.
Install
npx @og-ui/cli add alert
npx @og-ui/cli add alert --react # with the React component