@volverjs/ui-vue
Version:
@volverjs/ui-vue is a lightweight Vue 3 component library to accompany @volverjs/style.
16 lines (15 loc) • 496 B
TypeScript
import type { VvIconProps } from '@/components/VvIcon';
import type { AlertRole } from '@/constants';
export type AlertModifier = 'success' | 'info' | 'warning' | 'danger' | 'brand' | 'accent' | string;
export type Alert = {
id: string | number;
title?: string;
icon?: string | VvIconProps;
content?: string;
footer?: string;
modifiers?: AlertModifier | AlertModifier[];
dismissable?: boolean;
autoClose?: number;
closeLabel?: string;
role?: AlertRole;
};