File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/@react-aria/button/src Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,9 @@ export interface ButtonAria<T> {
32
32
isPressed : boolean
33
33
}
34
34
35
- export function useButton ( props : AriaButtonProps < 'a' > , ref : RefObject < HTMLAnchorElement > ) : ButtonAria < AnchorHTMLAttributes < HTMLAnchorElement > > ;
35
+ // Order with overrides is important: 'button' should be default
36
36
export function useButton ( props : AriaButtonProps < 'button' > , ref : RefObject < HTMLButtonElement > ) : ButtonAria < ButtonHTMLAttributes < HTMLButtonElement > > ;
37
+ export function useButton ( props : AriaButtonProps < 'a' > , ref : RefObject < HTMLAnchorElement > ) : ButtonAria < AnchorHTMLAttributes < HTMLAnchorElement > > ;
37
38
export function useButton ( props : AriaButtonProps < 'div' > , ref : RefObject < HTMLDivElement > ) : ButtonAria < HTMLAttributes < HTMLDivElement > > ;
38
39
export function useButton ( props : AriaButtonProps < 'input' > , ref : RefObject < HTMLInputElement > ) : ButtonAria < InputHTMLAttributes < HTMLInputElement > > ;
39
40
export function useButton ( props : AriaButtonProps < 'span' > , ref : RefObject < HTMLSpanElement > ) : ButtonAria < HTMLAttributes < HTMLSpanElement > > ;
You can’t perform that action at this time.
0 commit comments