diff --git a/packages/block-editor/src/components/border-radius-control/README.md b/packages/block-editor/src/components/border-radius-control/README.md index efc0e6499eeb7..26a1e0eab07ea 100644 --- a/packages/block-editor/src/components/border-radius-control/README.md +++ b/packages/block-editor/src/components/border-radius-control/README.md @@ -8,7 +8,7 @@ /** * WordPress dependencies */ -import { BorderRadiusControl } from '@wordpress/block-editor'; +import { __experimentalBorderRadiusControl as BorderRadiusControl } from '@wordpress/block-editor'; import { useState } from '@wordpress/element'; const MyBorderRadiusControl = () => { @@ -26,23 +26,17 @@ const MyBorderRadiusControl = () => { /> ); }; - -// ... - -; ``` ## Props -The component accepts the following props: - ### values An object containing the border radius values for each corner. - **Type:** `Object` - **Required:** No -- **Default:** `{ topLeft: undefined, topRight: undefined, bottomLeft: undefined, bottomRight: undefined }` +- **Default:** `undefined` The values object has the following schema: @@ -63,16 +57,4 @@ Callback function that is called when any border radius value changes. - **Required:** Yes - **Default:** `() => {}` -The function receives the updated values object as its argument. - -## Limitations - -The component has the following built-in constraints: - -- Minimum border radius value: 0 -- Maximum values by unit: - - px: 100 - - em: 20 - - rem: 20 - -Please refer to the component's stories for more examples of usage. +The function receives the updated values object as its argument. \ No newline at end of file diff --git a/packages/block-editor/src/components/border-radius-control/stories/index.story.js b/packages/block-editor/src/components/border-radius-control/stories/index.story.js index 85fa0c94e1df2..28844a5e5cace 100644 --- a/packages/block-editor/src/components/border-radius-control/stories/index.story.js +++ b/packages/block-editor/src/components/border-radius-control/stories/index.story.js @@ -55,12 +55,4 @@ export const Default = { /> ); }, - args: { - values: { - topLeft: '10px', - topRight: '10px', - bottomLeft: '10px', - bottomRight: '10px', - }, - }, }; diff --git a/packages/components/src/inspector-controls-tabs/README.md b/packages/components/src/inspector-controls-tabs/README.md new file mode 100644 index 0000000000000..e69de29bb2d1d