From e82624fd93fc42f6cbaad99bbfeec099289c9e3f Mon Sep 17 00:00:00 2001 From: gpbl Date: Fri, 27 Jan 2023 07:37:14 -0500 Subject: [PATCH] chore: improve ButtonProps type (#1666) --- packages/react-day-picker/src/components/Button/Button.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/react-day-picker/src/components/Button/Button.tsx b/packages/react-day-picker/src/components/Button/Button.tsx index e32c5ce605..4fa82738a3 100644 --- a/packages/react-day-picker/src/components/Button/Button.tsx +++ b/packages/react-day-picker/src/components/Button/Button.tsx @@ -3,11 +3,9 @@ import React, { forwardRef } from 'react'; import { useDayPicker } from 'contexts/DayPicker'; /** The props for the {@link Button} component. */ -export type ButtonProps = React.HTMLProps; +export type ButtonProps = JSX.IntrinsicElements['button']; -/** - * Render a button HTML element applying the reset class name. - */ +/** Render a button HTML element applying the reset class name. */ export const Button = forwardRef( (props, ref) => { const { classNames, styles } = useDayPicker();