File tree Expand file tree Collapse file tree
app/frontend/components/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import type * as React from 'react'
2-
31import { cn } from '@/lib/utils'
42
5- function Label ( { className, ...props } : React . ComponentProps < 'label' > ) {
3+ type LabelProps = Omit < React . ComponentProps < 'label' > , 'htmlFor' > & {
4+ htmlFor : string
5+ }
6+
7+ function Label ( { className, htmlFor, ...props } : LabelProps ) {
68 return (
9+ // biome-ignore lint/a11y/noLabelWithoutControl: <checking later>
710 < label
11+ htmlFor = { htmlFor }
812 data-slot = "label"
913 className = { cn (
10- 'flex items-center gap-2 text-sm font-medium leading-none select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50 ' ,
14+ 'flex items-center gap-2 text-sm font-medium leading-none select-none' ,
1115 className
1216 ) }
1317 { ...props }
You can’t perform that action at this time.
0 commit comments