This key defines an input configuration at a given level of the configuration cascade.
The value is an object that can contain type, label, options, disabled, hidden, and other input-specific properties. Each input configuration defines how team members interact with data in the Data Editor.
For more information, please read our documentation on inputs.
Appears in#
Types#
This key defines a simple editing interface for plain text.
Appears in: _inputs.*, link_options, image_options.
Show examplesHide examples
In this example, we have configured the title key as a Text Input.
_inputs:
title:
type: text
label: Blog Title{
"_inputs": {
"title": {
"type": "text",
"label": "Blog Title"
}
}
}This key defines an editing interface for plain text.
Appears in: _inputs.*.
Show examplesHide examples
In this example, we have configured the description key as a Textarea Input.
_inputs:
description:
type: textarea
label: Description{
"_inputs": {
"description": {
"type": "textarea",
"label": "Description"
}
}
}This key defines an editing interface for code or mono-spaced plain text content.
Appears in: _inputs.*.
This key defines an editing interface for color values.
Appears in: _inputs.*.
This key defines an editing interface for true or false values.
Appears in: _inputs.*, link_options, image_options.
Show examplesHide examples
In this example, we have configured the featured key as a Boolean Input.
_inputs:
featured:
type: switch
label: Featured{
"_inputs": {
"featured": {
"type": "switch",
"label": "Featured"
}
}
}This key defines an editing interface for numeric values.
Appears in: _inputs.*.
Show examplesHide examples
In this example, we have configured the quantity key as a Number Input.
_inputs:
quantity:
type: number
label: Quantity{
"_inputs": {
"quantity": {
"type": "number",
"label": "Quantity"
}
}
}This key defines a slider interface for selecting a numeric value.
Appears in: _inputs.*.
This key defines an editing interface for HTML markup content.
Appears in: _inputs.*.
This key defines an editing interface for date and/or time values.
Appears in: _inputs.*.
This key defines an editing interface for time values only.
Appears in: _inputs.*.
This key defines an editing interface for uploading files to your repository or DAM and browsing existing assets.
Appears in: _inputs.*.
This key defines an editing interface for relative, absolute, and fully qualified URLs.
Appears in: link_options, image_options, _inputs.*.
This key defines an editing interface for data with multiple predefined options.
Select inputs only allow one value.
Appears in: code_block_options, _inputs.*.
Show examplesHide examples
In this example, we have configured the category key as a Select Input.
_inputs:
category:
type: select
label: Category
options:
values:
- Blog
- News
- Events{
"_inputs": {
"category": {
"type": "select",
"label": "Category",
"options": {
"values": [
"Blog",
"News",
"Events"
]
}
}
}
}This key defines an editing interface for data with multiple predefined options.
Multiselect inputs allow several values.
Appears in: _inputs.*.
Show examplesHide examples
In this example, we have configured the tags key as a Multiselect Input.
_inputs:
tags:
type: multiselect
label: Tags
options:
values:
- featured
- news
- events{
"_inputs": {
"tags": {
"type": "multiselect",
"label": "Tags",
"options": {
"values": [
"featured",
"news",
"events"
]
}
}
}
}This key defines an editing interface for data with multiple predefined options.
Choice inputs only allow one value.
Appears in: _inputs.*.
Show examplesHide examples
In this example, we have configured the status key as a Choice Input.
_inputs:
status:
type: choice
label: Status
options:
values:
- draft
- published
- archived{
"_inputs": {
"status": {
"type": "choice",
"label": "Status",
"options": {
"values": [
"draft",
"published",
"archived"
]
}
}
}
}This key defines an editing interface for data with multiple predefined options.
Multichoice inputs allow several values.
Appears in: _inputs.*.
Show examplesHide examples
In this example, we have configured the categories key as a Multichoice Input.
_inputs:
categories:
type: multichoice
label: Categories
options:
values:
- technology
- design
- business{
"_inputs": {
"categories": {
"type": "multichoice",
"label": "Categories",
"options": {
"values": [
"technology",
"design",
"business"
]
}
}
}
}This key defines a user interface for a group of inputs.
Appears in: _inputs.*.
This key defines a user interface for lists of inputs or input groups.
Appears in: _inputs.*.
Examples#
In this example, we have configured the title key as a Text Input in the blog Collection.
collections_config:
blog:
_inputs:
title:
type: text
label: Title{
"collections_config": {
"blog": {
"_inputs": {
"title": {
"type": "text",
"label": "Title"
}
}
}
}
}