We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c17ca5 commit 4db0db3Copy full SHA for 4db0db3
packages/react/src/Label/Label.tsx
@@ -10,7 +10,7 @@ export type LabelProps = {
10
variant?: LabelColorOptions
11
/** How large the label is rendered */
12
size?: LabelSizeKeys
13
-} & React.HTMLAttributes<HTMLElement>
+}
14
15
export type LabelColorOptions =
16
| 'default'
packages/styled-react/src/components/Label.tsx
@@ -3,7 +3,7 @@ import {type SxProp} from '../sx'
3
import {forwardRef} from 'react'
4
import type {ForwardRefComponent} from '../polymorphic'
5
6
-type LabelProps = PrimerLabelProps & SxProp
+type LabelProps = PrimerLabelProps & SxProp & {as?: React.ElementType}
7
8
const StyledLabel = forwardRef(function Label(props, ref) {
9
return <Box as={PrimerLabel} ref={ref} {...props} />
0 commit comments