Skip to content

Commit

Permalink
add supported htmlFor prop to FormGroupLabelProps type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey committed Jan 26, 2021
1 parent b0f5aef commit 58b74f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@ declare module '@primer/components' {

export interface FormGroupProps extends CommonProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {}

export interface FormGroupLabelProps extends CommonProps, TypographyProps, Omit<React.HTMLAttributes<HTMLLabelElement>, 'color'> {}
export interface FormGroupLabelProps extends CommonProps, TypographyProps, Omit<React.HTMLAttributes<HTMLLabelElement>, 'color'> {
htmlFor?: string
}

export const FormGroup: React.FunctionComponent<FormGroupProps> & {
Label: React.FunctionComponent<FormGroupLabelProps>
Expand Down

0 comments on commit 58b74f4

Please # to comment.