Files
web/packages/design-system/lib/components/Label/Label.tsx
Christian Andolf 603c7dd2bf fix: make use of design system label component in select
minor tweaks to make sure input and select behaves consistently
2025-06-19 12:38:30 +02:00

21 lines
339 B
TypeScript

import { labelVariants } from './variants'
import type { LabelProps } from './types'
export function Label({
children,
className,
selected,
required,
size,
}: LabelProps) {
const classNames = labelVariants({
className,
size,
required,
selected,
})
return <span className={classNames}>{children}</span>
}