diff --git a/docusaurus/docs/dev-docs/custom-fields.md b/docusaurus/docs/dev-docs/custom-fields.md index 190a7269cd..a173c2efb8 100644 --- a/docusaurus/docs/dev-docs/custom-fields.md +++ b/docusaurus/docs/dev-docs/custom-fields.md @@ -281,6 +281,7 @@ Each object in the `items` array can contain the following parameters: | `description` | Description of the input to use in the Content-type Builder | [`IntlObject`](https://formatjs.io/docs/react-intl/) | | `intlLabel` | Translation for the label of the input | [`IntlObject`](https://formatjs.io/docs/react-intl/) | | `type` | Type of the input (e.g., `select`, `checkbox`) | `String` | +| `defaultValue` | Set the default value for the item | `String` | `boolean` |
Example: Declaring options for an example "color" custom field: @@ -322,12 +323,11 @@ export default { }, name: "options.format", type: "select", - value: "hex", // option selected by default + defaultValue: "hex", // option selected by default options: [ // List all available "Color format" options { key: "hex", - defaultValue: "hex", value: "hex", metadatas: { intlLabel: {