āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/preetecool/roi-ui/ui/alert ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
npx shadcn@latest add @roiui/alert
npx shadcn@latest add @roiui/alert-tailwind
</CodeBlockTab>
<CodeBlockTab value="pnpm">
pnpm dlx shadcn@latest add @roiui/alert
pnpm dlx shadcn@latest add @roiui/alert-tailwind
</CodeBlockTab>
</CodeBlockTabs>
</InstallationTabsContent>
<InstallationTabsContent value="manual" data-manual="true">
Copy and paste the following files:
<ComponentSource name="alert" />
</InstallationTabsContent> </InstallationTabs><CodeBlock
filename="anatomy"
language="tsx"
code={<Alert> <AlertTitle /> <AlertDescription /> </Alert> }
/>
<PropTable data={[ { prop: "variant", type: '"default" | "destructive" | "warning" | "success" | "info"', default: '"default"', description: "The visual style variant of the alert", }, { prop: "size", type: '"default" | "sm"', default: '"default"', description: "The size of the alert", }, { prop: "className", type: "string", description: "Additional CSS classes to apply to the alert", }, { prop: "children", type: "ReactNode", description: "The content to display inside the alert", }, ]} />
<PropTable data={[ { prop: "className", type: "string", description: "Additional CSS classes to apply to the alert title", }, { prop: "children", type: "ReactNode", description: "The title content", }, ]} />
<PropTable data={[ { prop: "className", type: "string", description: "Additional CSS classes to apply to the alert description", }, { prop: "children", type: "ReactNode", description: "The description content", }, ]} />
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā