Button Prompt

Provide Available Responses to users with within the timeline. This component has a different layout depending on how many options you provide

The parameters for a Button Prompt are:

Name Type Default Values Description
url string - - url that can be opened from the messenger
linkOpenTarget string tab tab,self open item url in a new tab tab, or change the current parent page self
urlTitle string - - the title of the webview that the url will be opened in if linkOpenTarget is set to detail

One Column Default Display

  <TimelineMessage>
    <ButtonPromptContainer>
      <ButtonPrompt label="Option One" id="0"/>
      <ButtonPrompt label="Option Two" id="1"/>
      <ButtonPrompt label="Option Three" id="2"/>
    </ButtonPromptContainer>
  </TimelineMessage>

Two Column Display

<TimelineMessage>
  <ButtonPromptContainer display="two-column">
    <ButtonPrompt label="Option One" id="0"/>
    <ButtonPrompt label="Option Two" id="1"/>
  </ButtonPromptContainer>
</TimelineMessage>

Inline Flowed Display

<TimelineMessage>
  <ButtonPromptContainer display="inline">
    <ButtonPrompt label="Option One" id="1"/>
    <ButtonPrompt label="Option Two" id="2"/>
    <ButtonPrompt label="Three" id="3"/>
    <ButtonPrompt label="Option Four" id="4"/>
    <ButtonPrompt label="Option Five" id="5"/>
    <ButtonPrompt label="Option Six" id="6"/>
  </ButtonPromptContainer>
</TimelineMessage>