Line data Source code
1 : import type { VariantProps } from 'cva'
2 : import { cva } from 'cva'
3 :
4 2355 : export const messageVariants = cva({
5 : base: 'flex w-full items-start gap-2 rounded-lg border px-3 py-2.75 text-sm',
6 : variants: {
7 : severity: {
8 : error: 'border-destructive/40 bg-destructive/10 text-foreground',
9 : warning: 'border-warning/50 bg-warning/15 text-foreground',
10 : info: 'border-primary/40 bg-primary/10 text-foreground',
11 : success: 'border-success/50 bg-success/15 text-foreground',
12 : secondary: 'border-border/50 bg-secondary text-foreground'
13 : }
14 : },
15 : defaultVariants: { severity: 'info' }
16 : })
17 :
18 : export type MessageVariants = VariantProps<typeof messageVariants>
|