Skip to content

Commit

Permalink
Fix the typing for tag (#67)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Haak <[email protected]>
Co-authored-by: Hunter Johnston <[email protected]>
  • Loading branch information
3 people authored Oct 30, 2023
1 parent c0573e3 commit 4e1f2ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/flat-carrots-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"formsnap": patch
---

Fix the typing for tag
4 changes: 2 additions & 2 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export type DescriptionProps = {
*
* @default "p"
*/
tag?: string;
tag?: keyof HTMLElementTagNameMap;
} & HTMLAttributes<HTMLElement>;

export type ValidationProps = {
Expand All @@ -56,7 +56,7 @@ export type ValidationProps = {
*
* @default "p"
*/
tag?: string;
tag?: keyof HTMLElementTagNameMap;
} & HTMLAttributes<HTMLElement>;

export type RadioProps = HTMLInputAttributes;
Expand Down

0 comments on commit 4e1f2ae

Please sign in to comment.