Skip to content

Alert

Inline alert with icon, title, description.

Terminal window
npx github:truongnat/rnui#cli add alert

or directly via the shadcn CLI:

Terminal window
npx shadcn add https://<registry-base>/r/nativewind/alert.json # or /uniwind/

npm dependencies installed automatically: lucide-react-native

<Alert>
<AlertTitle>Heads up</AlertTitle>
<AlertDescription>Something happened.</AlertDescription>
</Alert>
  • components/ui/alert.tsx

Installs together with: utils, text, theme