Skip to content

Commit ceb8e7f

Browse files
committed
fix lint
1 parent 0420d5c commit ceb8e7f

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

app/frontend/components/ui/label.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
import type * as React from 'react'
2-
31
import { 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}

0 commit comments

Comments
 (0)