Theme Editor Field Types
There are a wide variety of field types that you can use for theme settings and theme styles within the theme editor.
border
The border field type allows editors to set the border style, width, and color for an element in one field. The styles can be set to apply to all sides, or each side can be styled independently.
borderRadius
Style the border radius of an element.
boxShadow
Style the box shadow of an element.
checkbox
Checkbox field.
code
Code editor field.
collectionWidget
Select menu to choose a collection widget.
colorPalette
Choose a color from the theme editor color palette.
contentSnippet
Select menu to choose a content snippet.
date
Date picker field.
dateTime
Date and time picker field.
decimal
Text box where only numbers, a single decimal point, and a negative sign are allowed
Text input for email addresses.
embedUrl
Text input to set the URL of an embeddable media like a YouTube or Vimeo video. It enables a developer to easy embed media from other websites.
file
File upload field.
folderBrowser
Select a folder path.
fontFamily
Font family select field.
fontStyle
Set the font style of an element.
fontPalette
Choose a font family from the font palette.
fontPicker
Choose a font family from Google fonts.
fontsAvailable
Choose from one of the available font palette fonts.
fontSize
Style the font size of an element.
fontWeight
Select menu to choose a font weight.
fontWeightRadio
Radio menu to choose a font weight.
fontWeightSelect
Select menu to choose a font weight.
form
Select menu to choose a form.
iframeEmbed
Text area field to enter an <iframe> tag. It enables the developer to access the individual attributes of an iframe tag.
image
Image upload field.
latitudeLongitude
Map field to set a specific latitude/longitude point.
letterSpacing
Style the letter spacing for an element.
lineHeight
Style the line height of an element.
margin
Style the margin of an element.
multiSelect
Multi-select field to select and sort one or more values.
multiSelectApi
Multi-select field to select and sort one or more values where the values come from an internal API call.
navigation
Select menu to choose a navigation menu.
number
Text box where only numbers and a negative sign are allowed
padding
Style the padding for an element.
password
Password field
radio
Radio input field.
ratio
Two small text inputs beside each other to set a ratio or two number values.
repeating
A set of repeating fields for entering multiple values. The fields are output vertically in a group.
repeatingGrid
A set of repeating fields for entering multiple values. The fields are output horizontally in a grid.
richTextEditor
The TinyMCE rich text editor field.
segmentedControl
Radio input alternative where buttons placed horizontally are used to select a value.
select
Select menu field.
selectApi
Select menu field where the values come from an internal API call.
selectCountry
Select menu to choose a country.
selectDate
Select menus to choose a month, day, and year.
selectDateTime
Select menus to choose a month, day, year, hour, minute, and AP/PM.
selectProvince
Select menu to choose a Canadian province.
selectState
Select menu to choose a US state.
selectStateRegion
Select menu to choose a region within a state. A county is an example of a region.
selectTown
Select menu to choose a town or city.
size
A small text input with a size unit option.
spacing
Style both the margin and padding of an element.
slider
A slider field.
stepper
A small text input with buttons on both sides of it to decrement or increment a number value.
snippet
A select menu to choose a snippet.
switch
A toggle field to select an on/off or yes/no type value.
phone
A text input to input a telephone number. tel is an alias.
text
A text input field.
textarea
A text area field.
textAlign
Style the text alignment for an element. It can also be used to set the horizontal flex alignment of an element.
textDecoration
Style the text decoration for an element.
textShadow
Style the text shadow of an element.
textTransform
Style the text transform of an element.
time
Input to set the time.
typography
A special field that outputs the following fields to style the typography of an element.
- color
- fontFamily
- fontStyle
- fontSize
- fontWeight
- letterSpacing
- lineHeight
- textAlign
- textDecoration
- textShadow
- textTransform
It can optionally include the above fields to style the hover state of an element.
It can optionally include the margin and padding fields.
url
An input field to set a URL. You can select from pages to set an internal URL, enter a URL, or enter a phone, email, or SMS url with the correct formatting.