refactor: move input and label to design system
correct variables according to design system spec various cleanup
This commit is contained in:
13
packages/design-system/lib/components/Label/Label.tsx
Normal file
13
packages/design-system/lib/components/Label/Label.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { labelVariants } from './variants'
|
||||
|
||||
import type { LabelProps } from './types'
|
||||
|
||||
export function Label({ children, className, required, size }: LabelProps) {
|
||||
const classNames = labelVariants({
|
||||
className,
|
||||
size,
|
||||
required,
|
||||
})
|
||||
|
||||
return <span className={classNames}>{children}</span>
|
||||
}
|
||||
Reference in New Issue
Block a user