Components for user feedback and interaction states.
Important status message.
interface AlertSchema {
type: 'alert';
title?: string;
description: string;
variant?: 'default' | 'destructive' | 'info' | 'warning' | 'success';
icon?: string; // Optional icon override
closable?: boolean;
}Visual indicator of completion percentage.
interface ProgressSchema {
type: 'progress';
value: number; // 0-100
max?: number; // default 100
showLabel?: boolean; // Show "50%"
color?: string;
}Loading placeholder for content.
interface SkeletonSchema {
type: 'skeleton';
width?: string | number;
height?: string | number;
shape?: 'rectangle' | 'circle';
count?: number; // Number of lines
}Loading indicator.
interface SpinnerSchema {
type: 'spinner';
size?: 'sm' | 'md' | 'lg';
label?: string; // "Loading..." text
}Transient notification. (Usually triggered via Action, but can be declared).
interface ToastAction {
type: 'toast';
title?: string;
description?: string;
variant?: 'default' | 'destructive' | 'success';
duration?: number;
}