Skip to content

Commit

Permalink
[Base][useButton] Allow useButton params to be completely optional (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mj12albert authored Apr 21, 2023
1 parent 690d7d6 commit 3d92241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mui-base/src/useButton/useButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { EventHandlers } from '../utils/types';
*
* - [useButton API](https://mui.com/base/react-button/hooks-api/#use-button)
*/
export default function useButton(parameters: UseButtonParameters): UseButtonReturnValue {
export default function useButton(parameters: UseButtonParameters = {}): UseButtonReturnValue {
const {
disabled = false,
focusableWhenDisabled,
Expand Down

0 comments on commit 3d92241

Please sign in to comment.