Skip to content

Commit fd31f8f

Browse files
committed
Enable to pass data- props to Button
1 parent 605e0c2 commit fd31f8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Button.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ export namespace ButtonProps {
6767
HTMLButtonElement
6868
>,
6969
"onClick"
70-
>;
70+
> &
71+
Record<`data-${string}`, string | boolean | null | undefined>;
7172
disabled?: boolean;
7273
/** Default "button" */
7374
type?: "button" | "submit" | "reset";

0 commit comments

Comments
 (0)