> ## Documentation Index
> Fetch the complete documentation index at: https://prismeai-legacy.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Action Block

> Deprecated. Replaced by [Button](./Button). Create interactive buttons and links.

<Accordion title="Configuration Options">
  <ParamField path="type" type="string">
    Required. Action type: 'external', 'internal', 'inside', 'event', 'script', or 'upload'.
  </ParamField>

  <ParamField path="value" type="string">
    Required. Target URL, event name, or script based on type.
  </ParamField>

  <ParamField path="text" type="ReactNode | LocalizedText | Blocks">
    Required. Button/link text or content.
  </ParamField>

  <ParamField path="payload" type="any">
    Optional. Data to send with event.
  </ParamField>

  <ParamField path="popup" type="boolean">
    Optional. If true, opens links in a new window.
  </ParamField>

  <ParamField path="accept" type="string">
    Optional. For upload type, specifies accepted file types.
  </ParamField>

  <ParamField path="confirm" type="Object">
    Optional. Confirmation dialog settings.
  </ParamField>

  <ParamField path="disabled" type="boolean">
    Optional. If true, disables the action.
  </ParamField>
</Accordion>

<Accordion title="Example YAML">
  ```yaml theme={null}
  - slug: Action
    text:
      en: Submit Form
      fr: Soumettre le Formulaire
    type: event
    value: submitFormEvent
    payload:
      formId: contactForm
    disabled: "{{!formValid}}"
    confirm:
      label: Are you sure you want to submit?
      yesLabel: Submit
      noLabel: Cancel
    onInit: myInitBlockAction
    updateOn: myUpdateBlockAction
    css: |-
      :block {
        display: inline-flex;
        padding: 8px 16px;
        background-color: #4CAF50;
        color: white;
        border-radius: 4px;
        cursor: pointer;
      }
      :block[disabled] {
        opacity: 0.5;
        cursor: not-allowed;
      }
  ```
</Accordion>
