Update custom-widgets.mdx
This commit is contained in:
parent
68eb00e598
commit
0330b81843
@ -40,7 +40,7 @@ CMS.registerWidget(name, control, [preview], [{ schema }]);
|
||||
The react component that renders the control. It receives the following props:
|
||||
|
||||
| Param | Type | Description |
|
||||
| ------------------- | ------------------------ | --------------------------------------------------------------------------------------------------------- |
|
||||
| ------------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| label | string | The label for the widget |
|
||||
| value | An valid widget value | The current value of the widget |
|
||||
| onChange | function | Function to be called when the value changes. Accepts a valid widget value |
|
||||
@ -70,7 +70,10 @@ The react component that renders the control. It receives the following props:
|
||||
|
||||
#### Open Media Library
|
||||
|
||||
<Alert severity="error">Deprecated. Use [useMediaInsert](/docs/custom-widgets#interacting-with-the-media-library) instead. Will be removed in v3.0.0.</Alert>
|
||||
<Alert severity="error">
|
||||
Deprecated. Use [useMediaInsert](/docs/custom-widgets#interacting-with-the-media-library) instead.
|
||||
Will be removed in v3.0.0.
|
||||
</Alert>
|
||||
|
||||
`openMediaLibrary` allows you to open up the media library popup. It accepts the following props:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user