Skip to content

Commit

Permalink
fix(button): fix prop types for button
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkbjo committed Apr 15, 2024
1 parent 52aa1b4 commit 9199aaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/button/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type ButtonOpenEventHandler<
Event extends React.SyntheticEvent = React.MouseEvent<HTMLButtonElement>
> = (arg0: ButtonEventPayload & { open: boolean }, event: Event) => void

export interface ButtonProps extends HTMLButtonElement {
export interface ButtonProps {
/**
* Component to render inside the button
*/
Expand Down Expand Up @@ -102,7 +102,7 @@ export interface ButtonProps extends HTMLButtonElement {
onKeyDown?: ButtonEventHandler<React.KeyboardEvent<HTMLButtonElement>>
}

export const Button: React.FC<ButtonProps>
export const Button: React.FC<ButtonProps & Omit<React.HTMLProps<HTMLButtonElement>, keyof ButtonProps>>

export interface ButtonStripProps {
children?: React.ReactNode
Expand Down

0 comments on commit 9199aaf

Please sign in to comment.