Skip to content

Commit

Permalink
chore: improve ButtonProps type (#1666)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl authored Jan 27, 2023
1 parent 6dcaa4b commit e82624f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/react-day-picker/src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<HTMLButtonElement>;
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<HTMLButtonElement, ButtonProps>(
(props, ref) => {
const { classNames, styles } = useDayPicker();
Expand Down

0 comments on commit e82624f

Please sign in to comment.