fix: make use of design system label component in select
minor tweaks to make sure input and select behaves consistently
This commit is contained in:
@@ -2,11 +2,18 @@ import { labelVariants } from './variants'
|
||||
|
||||
import type { LabelProps } from './types'
|
||||
|
||||
export function Label({ children, className, required, size }: LabelProps) {
|
||||
export function Label({
|
||||
children,
|
||||
className,
|
||||
selected,
|
||||
required,
|
||||
size,
|
||||
}: LabelProps) {
|
||||
const classNames = labelVariants({
|
||||
className,
|
||||
size,
|
||||
required,
|
||||
selected,
|
||||
})
|
||||
|
||||
return <span className={classNames}>{children}</span>
|
||||
|
||||
Reference in New Issue
Block a user