/** * React Aria prop types are not DOM prop types. * * A component that extends `AriaButtonProps` (or any other `Aria*Props`) and * then spreads its leftover props onto an element ships those extras straight * to the DOM. React logs `Unknown event handler property \`onPress\`. It will * be ignored.` for the handlers and renders the rest as stray attributes — and * nothing in this repo's build, lint, typecheck or Storybook run sees it, * because it is a runtime console warning in the consumer's app. * * The hooks already read these off the *full* props object, so dropping them * from the spread costs nothing: `useButton(props, ref)` still receives * `onPress` and still fires it. */ /** * Every `AriaButtonProps<'button'>` member that must not reach a `