SW-3317 move toast to design system * chore: Move toast to design-system and add interaction tests * Move toast to design-system and add storybook tests * Merge branch 'master' of bitbucket.org:scandic-swap/web into SW-3317-move-toast-to-design-system * merge * move sonner dependency to @scandic-hotels/design-system Approved-by: Anton Gunnarsson
17 lines
336 B
TypeScript
17 lines
336 B
TypeScript
import { cva } from 'class-variance-authority'
|
|
|
|
import styles from './toasts.module.css'
|
|
|
|
export const config = {
|
|
variants: {
|
|
variant: {
|
|
success: styles.success,
|
|
info: styles.info,
|
|
warning: styles.warning,
|
|
error: styles.error,
|
|
},
|
|
},
|
|
} as const
|
|
|
|
export const toastVariants = cva(styles.toast, config)
|