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:
Christian Andolf
2025-06-13 16:23:11 +02:00
parent 4a00527d1d
commit 603c7dd2bf
7 changed files with 50 additions and 46 deletions

View File

@@ -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>