fix(BOOK-293): changed variants and props on IconButton component * fix(BOOK-293): changed variants and props on IconButton component * fix(BOOK-293): inherit color for icon Approved-by: Bianca Widstam Approved-by: Christel Westerberg
19 lines
354 B
TypeScript
19 lines
354 B
TypeScript
import { cva } from 'class-variance-authority'
|
|
|
|
import styles from './loading.module.css'
|
|
|
|
export const config = {
|
|
variants: {
|
|
type: {
|
|
Dark: styles.dark,
|
|
White: styles.white,
|
|
CurrentColor: styles.currentColor,
|
|
},
|
|
},
|
|
defaultVariants: {
|
|
type: 'Dark',
|
|
},
|
|
} as const
|
|
|
|
export const variants = cva(styles.loading, config)
|