Skip to content

Commit

Permalink
docs: fix typo in PolymorphicProps (#14391)
Browse files Browse the repository at this point in the history
Co-authored-by: TJ Egan <[email protected]>
  • Loading branch information
dbrugger and tw15egan authored Aug 4, 2023
1 parent b7abe20 commit e5c6a0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/types/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type ForwardRefReturn<T, P = unknown> = React.ForwardRefExoticComponent<

/**
* For "as" props. Creates an "as" property that supports native html tags such as 'span', 'a', 'button' as well as custom functional components
* All native props for the supplied html tag/component are inferred as part of the base component props, allowing us to use props like `href` on an 'a' element ect
* All native props for the supplied html tag/component are inferred as part of the base component props, allowing us to use props like `href` on an 'a' element etc
*/
export type PolymorphicProps<Element extends React.ElementType, Props> = Props &
Omit<React.ComponentProps<Element>, 'as'> & {
Expand Down

0 comments on commit e5c6a0d

Please sign in to comment.