Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docusaurus/docs/dev-docs/custom-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |

<details>
<summary>Example: Declaring options for an example "color" custom field:</summary>
Expand Down Expand Up @@ -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: {
Expand Down