From dfe66b21d3c74f68a9f44fca4c877118af529bd7 Mon Sep 17 00:00:00 2001 From: yogeshbhutkar Date: Fri, 27 Dec 2024 10:13:26 +0530 Subject: [PATCH] added `renderToggle` prop details to readme --- .../src/components/media-replace-flow/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/block-editor/src/components/media-replace-flow/README.md b/packages/block-editor/src/components/media-replace-flow/README.md index a5808ab956198..b3427efffbcf1 100644 --- a/packages/block-editor/src/components/media-replace-flow/README.md +++ b/packages/block-editor/src/components/media-replace-flow/README.md @@ -98,3 +98,10 @@ If passed, children are rendered inside the dropdown. - Required: No If passed, children are rendered inside the dropdown. If a function is provided for this prop, it will receive an object with the `onClose` prop as an argument. + +### renderToggle + +- Type: `func` +- Required: No + +If passed, it will be used to render the provided button instead of the default one. It should accept and pass through `button` props to a `button` element.