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