Skip to content

Commit 4db0db3

Browse files
committed
fix types...again
1 parent 9c17ca5 commit 4db0db3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react/src/Label/Label.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export type LabelProps = {
1010
variant?: LabelColorOptions
1111
/** How large the label is rendered */
1212
size?: LabelSizeKeys
13-
} & React.HTMLAttributes<HTMLElement>
13+
}
1414

1515
export type LabelColorOptions =
1616
| 'default'

packages/styled-react/src/components/Label.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {type SxProp} from '../sx'
33
import {forwardRef} from 'react'
44
import type {ForwardRefComponent} from '../polymorphic'
55

6-
type LabelProps = PrimerLabelProps & SxProp
6+
type LabelProps = PrimerLabelProps & SxProp & {as?: React.ElementType}
77

88
const StyledLabel = forwardRef(function Label(props, ref) {
99
return <Box as={PrimerLabel} ref={ref} {...props} />

0 commit comments

Comments
 (0)