feat: create new StaticChip component * feat: create new StaticChip componeny * refactor: remove deprecated Chip * fix: update type * refactor: remove div Approved-by: Erik Tiekstra
25 lines
509 B
TypeScript
25 lines
509 B
TypeScript
import { cva } from 'class-variance-authority'
|
|
|
|
import styles from './chip-static.module.css'
|
|
|
|
export const config = {
|
|
variants: {
|
|
color: {
|
|
Subtle: styles['color-subtle'],
|
|
Disabled: styles['color-disabled'],
|
|
Neutral: styles['color-neutral'],
|
|
},
|
|
size: {
|
|
xs: styles['size-xs'],
|
|
sm: styles['size-sm'],
|
|
lg: styles['size-lg'],
|
|
},
|
|
},
|
|
defaultVariants: {
|
|
color: 'Neutral',
|
|
size: 'sm',
|
|
},
|
|
} as const
|
|
|
|
export const variants = cva(styles.chip, config)
|