The Workspace Settings API is experimental and may change in the future. Please don’t use it in production versions of your app.
This component is returned by
experimental_useWorkspaceSettingsForm().Example: Conditional fields
<WithState /> allows you to access the current settings values via render props
in the JSX, so you can conditionally render fields based on other settings.
workspace-settings.tsx
Props
Whether or not to request the form validation errors.Defaults to
false.If true, the errors will be passed to the children render prop.Whether or not to request the current settings values.Defaults to
false.If true, the values will be passed to the children render prop.A render prop
that receives the requested form state.
An object of form validation errors in the same shape as your settings values.
The current values of your workspace settings.