From b321d7de81948b9d28cdc61e7b3ccf577126a1de Mon Sep 17 00:00:00 2001 From: Stefan Probst Date: Tue, 20 Jan 2026 18:13:30 +0100 Subject: [PATCH] fix: allow passing function as formAction button prop (#9501) --- packages/@react-types/button/src/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@react-types/button/src/index.d.ts b/packages/@react-types/button/src/index.d.ts index 53b096a2689..96739a9e8ad 100644 --- a/packages/@react-types/button/src/index.d.ts +++ b/packages/@react-types/button/src/index.d.ts @@ -11,7 +11,7 @@ */ import {AriaLabelingProps, FocusableDOMProps, FocusableProps, Key, PressEvents, StyleProps} from '@react-types/shared'; -import {ElementType, JSXElementConstructor, ReactNode} from 'react'; +import {ButtonHTMLAttributes, ElementType, JSXElementConstructor, ReactNode} from 'react'; interface ButtonProps extends PressEvents, FocusableProps { /** Whether the button is disabled. */ @@ -81,7 +81,7 @@ interface AriaBaseButtonProps extends FocusableDOMProps, AriaLabelingProps { * The URL that processes the information submitted by the button. * Overrides the action attribute of the button's form owner. */ - formAction?: string, + formAction?: ButtonHTMLAttributes['formAction'], /** Indicates how to encode the form data that is submitted. */ formEncType?: string, /** Indicates the HTTP method used to submit the form. */