23 lines
445 B
TypeScript
23 lines
445 B
TypeScript
import { cva } from "class-variance-authority"
|
|
|
|
import styles from "./teaserCard.module.css"
|
|
|
|
export const config = {
|
|
variants: {
|
|
style: {
|
|
default: styles.default,
|
|
featured: styles.featured,
|
|
},
|
|
alwaysStack: {
|
|
true: styles.alwaysStack,
|
|
false: "",
|
|
},
|
|
},
|
|
defaultVariants: {
|
|
style: "default",
|
|
alwaysStack: false,
|
|
},
|
|
} as const
|
|
|
|
export const teaserCardVariants = cva(styles.teaserCard, config)
|