refactor: move input and label to design system
correct variables according to design system spec various cleanup
This commit is contained in:
20
packages/design-system/lib/components/Label/variants.ts
Normal file
20
packages/design-system/lib/components/Label/variants.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { cva } from 'class-variance-authority'
|
||||
|
||||
import styles from './label.module.css'
|
||||
|
||||
export const labelVariants = cva(styles.label, {
|
||||
variants: {
|
||||
size: {
|
||||
small: styles.small,
|
||||
regular: styles.regular,
|
||||
discreet: styles.discreet,
|
||||
},
|
||||
required: {
|
||||
true: styles.required,
|
||||
},
|
||||
},
|
||||
defaultVariants: {
|
||||
size: 'regular',
|
||||
required: false,
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user