2017-03-28 08:01:03 -07:00
|
|
|
|
# Configuring your site
|
|
|
|
|
|
|
|
|
|
## Widgets
|
|
|
|
|
|
|
|
|
|
Widgets define the data type and interface for entry fields. Netlify CMS comes with several built-in widgets, including:
|
|
|
|
|
|
|
|
|
|
Widget | UI | Data Type
|
|
|
|
|
--- | --- | ---
|
|
|
|
|
`string` | text input | string
|
2017-05-18 10:37:41 -04:00
|
|
|
|
`boolean` | select input | switch for true and false
|
2017-03-28 08:01:03 -07:00
|
|
|
|
`text` | text area input | plain text, multiline input
|
|
|
|
|
`number` | text input with `+` and `-` buttons | number
|
|
|
|
|
`markdown` | rich text editor with raw option | markdown-formatted string
|
|
|
|
|
`datetime` | date picker widget | ISO date string
|
|
|
|
|
`image` | file picker widget with drag-and-drop | file path saved as string, image uploaded to media folder
|
|
|
|
|
`hidden` | No UI | Hidden element, typically only useful with a `default` attribute
|
|
|
|
|
`list` | text input | strings separated by commas
|
2017-05-18 10:37:41 -04:00
|
|
|
|
`file` | file input | input file upload
|
|
|
|
|
`select` | select input | dropdown filled with `options` from the config
|
|
|
|
|
`object` | custom | `fields` as a list defined in the config
|
2017-03-28 08:01:03 -07:00
|
|
|
|
|
|
|
|
|
We’re always adding new widgets, and you can also [create your own](/docs/extending).
|