Alert

Alert banner primitives.

Use Alert to surface important, time-sensitive feedback.

import { Alert, AlertTitle, AlertDescription } from '@tile-ui/vue';
 
export default function AlertDemo() {
	return (
		<div class="component-preview__stack">
			<Alert>

Registry install

pnpm dlx shadcn@latest add @tile-ui/alert

Package usage

import { Alert, AlertTitle, AlertDescription } from '@tile-ui/vue';
 
<Alert variant="destructive">
	<AlertTitle>Heads up</AlertTitle>
	<AlertDescription>Your session expires in 5 minutes.</AlertDescription>
</Alert>

Highlights

  • Default and destructive variants
  • Title and description
  • Pairs with Card and Form

Registry dependencies

Item Purpose
alert Component source and module styles
core Framework-agnostic logic helpers
styles Shared SCSS tokens and globals

API reference

Alert

Prop Type Default
variant 'default' | 'destructive'