Input

An input component is used to capture text input from the end user.

If you pass an action to the input component, it will render with an inline button which submits the value inside the input to the specified URL.

{  type: "input",   id: "user_email_address",  label: "Enter your email address",  placeholder: "user@domain.com",  value: "peter@intercom.io",  save_state: "unsaved",  disabled: true,  action: {    type: "submit"  }}
ParameterPossible ValuesRequiredFunction
idAny stringYesUnique identifier for the component within this card.
labelAny stringNoThe text shown above the input.
placeholderAny stringNoAn example value shown inside the input when itโ€™s empty.
valueAny stringNoThe default value of the input.
actionAction objectNoThis can be a Submit Action, URL Action, or Sheets Action.
save_stateunsaved (default)savedfailedNoThe defined state of the inputted value to render a specific style.
disabledfalse (default)trueNoStyles as complete and prevents further editing or interaction.

๐Ÿ“˜ Saved States

A save_state of saved renders the input in a style which indicates a successfully submitted value, and prevents further editing or interaction with the input. It's the only save_state that changes the function and blocks any further interaction.This is the same functionality as if you set the disabled boolean to true. If you set the save_state as saved but the disabled boolean as false, we'll overwrite the boolean and still show the component in this disabled state.

Card View

Frame View