Feedback and status

Alert

inline, persistent · variant default/info/success/warning/destructive · icon · onDismiss/action make it a nudge

Alert

Usage

Inline and persistent, tinted by tone. For transient messages use Toast. onDismiss and action turn it into a nudge — never dismissible for an error the user must act on.

API

<Alert icon variant="default|info|success|warning|destructive" onDismiss? action?><AlertTitle /><AlertDescription /></Alert>

Get it

Already in every copy of the native kit:

import { Alert } from '@/components/ui/alert';

Details

Exports
Alert
Packages
class-variance-authority@^0.7.1, lucide-react-native@^1.21.0
Installs with
@halftone-native/icon, @halftone-native/lib-utils, @halftone-native/text
Also searched as
inline message, banner, callout, error, success

Agents: the whole registry is at /llms.txt.