Skip to content

Commit

Permalink
Merge branch 'main' into cb/ts-base-styles
Browse files Browse the repository at this point in the history
  • Loading branch information
colebemis authored Jan 26, 2021
2 parents fe16e21 + 091f9a2 commit daf21a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/mighty-pumpkins-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/components": patch
---

Add supported `htmlFor` prop to `FormGroupLabelProps` type definition
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 daf21a7

Please sign in to comment.