diff --git a/docs/Buttons.md b/docs/Buttons.md index 8542a78db90..416e93d8c8b 100644 --- a/docs/Buttons.md +++ b/docs/Buttons.md @@ -325,6 +325,31 @@ It's worth noting that removing the ripple will cause accessibility issues, incl Note: The `disableRipple` was set to `true` in React Admin for a time, but was reimplemented due to accessibility concerns. If you'd like to reimplement the static ripple colour effect, you can use the [React Admin's previous implementation](https://github.com/marmelab/react-admin/blob/994079cbca810a2e74d85329e684811645b04ae2/packages/ra-ui-materialui/src/defaultTheme.ts#L31) as a starting point. [The Material UI docs](https://mui.com/material-ui/api/button-base/#props) also gives details on how to reimplement focus styles using the `Mui-focusVisible` class. +### `` + +This component allows to create a button that updates a record by calling the [`useUpdate hook`](./useUpdate.md). + +```jsx +import { Edit, SimpleForm, TextInput, TopToolbar, UpdateButton } from 'react-admin'; + +const PostEditActions = () => ( + + + +); + +export const PostEdit = () => ( + }> + + + + + +); +``` + +See [its documentation](./UpdateButton.md) for more details. + ## Miscellaneous ### `