Merged in feat-StaticChip-component (pull request #3401)
feat: create new StaticChip component * feat: create new StaticChip componeny * refactor: remove deprecated Chip * fix: update type * refactor: remove div Approved-by: Erik Tiekstra
This commit is contained in:
24
packages/design-system/lib/components/ChipStatic/variants.ts
Normal file
24
packages/design-system/lib/components/ChipStatic/variants.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user