{
  "id": "mui_button",
  "name": "Button",
  "width": 220,
  "height": 72,
  "cornerRadius": 0,
  "fit": "Contain",
  "backgroundColor": "#FFFFFF",
  "opacity": 1,
  "objects": [
    {
      "id": "button",
      "name": "Button",
      "type": "Group",
      "isVisible": true,
      "isLocked": false,
      "transform": {
        "x": 110,
        "y": 36,
        "rotation": 0,
        "scale_x": 1,
        "scale_y": 1,
        "opacity": 1,
        "skew_x": 0,
        "skew_y": 0
      },
      "children": [
        "pill",
        "label",
        "arrow",
        "spinner"
      ],
      "interactions": [],
      "width": 180,
      "height": 50,
      "clipContent": false,
      "geometry": {
        "type": "Rectangle",
        "width": 180,
        "height": 50,
        "cornerRadius": 0
      },
      "style": {
        "fill": {
          "type": "None",
          "color": "transparent",
          "opacity": 0
        },
        "stroke": {
          "color": "transparent",
          "width": 0
        }
      },
      "zIndex": 0
    },
    {
      "id": "pill",
      "name": "Pill",
      "type": "Shape",
      "isVisible": true,
      "isLocked": false,
      "transform": {
        "x": 0,
        "y": 0,
        "rotation": 0,
        "scale_x": 1,
        "scale_y": 1,
        "opacity": 1,
        "skew_x": 0,
        "skew_y": 0
      },
      "children": [],
      "interactions": [],
      "parentId": "button",
      "width": 180,
      "height": 50,
      "geometry": {
        "type": "Rectangle",
        "width": 180,
        "height": 50,
        "cornerRadius": 25
      },
      "style": {
        "fill": {
          "type": "Solid",
          "color": "#FF5A1F",
          "opacity": 1
        },
        "stroke": {
          "color": "transparent",
          "width": 0
        },
        "shadow": {
          "color": "#000000",
          "blur": 14,
          "offsetX": 0,
          "offsetY": 6,
          "spread": -4,
          "opacity": 22,
          "isEnabled": true
        }
      },
      "zIndex": 1,
      "logicProperties": [
        {
          "id": "pill_lp_fill",
          "name": "fill",
          "valueType": "variable",
          "variableId": "in_accent"
        }
      ]
    },
    {
      "id": "label",
      "name": "Label",
      "type": "Shape",
      "isVisible": true,
      "isLocked": false,
      "transform": {
        "x": -12,
        "y": 1.3499999999999999,
        "rotation": 0,
        "scale_x": 1,
        "scale_y": 1,
        "opacity": 1,
        "skew_x": 0,
        "skew_y": 0
      },
      "children": [],
      "interactions": [],
      "parentId": "button",
      "geometry": {
        "type": "Text",
        "text": "Continue",
        "fontSize": 15,
        "fontFamily": "Inter",
        "fontWeight": 600,
        "textAlign": "center",
        "textVerticalAlign": "middle",
        "letterSpacing": 0,
        "lineHeight": 1.4,
        "width": 105,
        "height": 25
      },
      "style": {
        "fill": {
          "type": "Solid",
          "color": "#FFFFFF",
          "opacity": 1
        }
      },
      "zIndex": 2,
      "logicProperties": [
        {
          "id": "label_lp_fill",
          "name": "fill",
          "valueType": "variable",
          "variableId": "in_onaccent"
        },
        {
          "id": "label_lp_text",
          "name": "text",
          "valueType": "variable",
          "variableId": "in_labeltext"
        }
      ]
    },
    {
      "id": "arrow",
      "name": "Arrow",
      "type": "Shape",
      "isVisible": true,
      "isLocked": false,
      "transform": {
        "x": 56,
        "y": 0,
        "rotation": 0,
        "scale_x": 1,
        "scale_y": 1,
        "opacity": 1,
        "skew_x": 0,
        "skew_y": 0
      },
      "children": [],
      "interactions": [],
      "parentId": "button",
      "width": 16.799999999999997,
      "height": 16.799999999999997,
      "geometry": {
        "type": "Path",
        "data": "M-4.9 0 L4.9 0 M0.7 -4.2 L4.9 0 L0.7 4.2",
        "width": 16.799999999999997,
        "height": 16.799999999999997,
        "baseWidth": 16.799999999999997,
        "baseHeight": 16.799999999999997
      },
      "style": {
        "fill": {
          "type": "None",
          "color": "transparent",
          "opacity": 0
        },
        "stroke": {
          "color": "#FFFFFF",
          "width": 2.2,
          "opacity": 1,
          "isEnabled": true,
          "lineCap": "round",
          "lineJoin": "round",
          "cap": "round",
          "join": "round"
        }
      },
      "zIndex": 3,
      "logicProperties": [
        {
          "id": "arrow_lp_stroke",
          "name": "stroke",
          "valueType": "variable",
          "variableId": "in_onaccent"
        }
      ]
    },
    {
      "id": "spinner",
      "name": "Spinner",
      "type": "Shape",
      "isVisible": true,
      "isLocked": false,
      "transform": {
        "x": 0,
        "y": 0,
        "rotation": 0,
        "scale_x": 1,
        "scale_y": 1,
        "opacity": 0,
        "skew_x": 0,
        "skew_y": 0
      },
      "children": [],
      "interactions": [],
      "parentId": "button",
      "width": 18,
      "height": 18,
      "geometry": {
        "type": "Ellipse",
        "width": 18,
        "height": 18
      },
      "style": {
        "fill": {
          "type": "None",
          "color": "transparent",
          "opacity": 0
        },
        "stroke": {
          "color": "#FFFFFF",
          "width": 2.4,
          "opacity": 1,
          "isEnabled": true,
          "trimEnd": 0.7
        }
      },
      "zIndex": 4,
      "logicProperties": [
        {
          "id": "spinner_lp_stroke",
          "name": "stroke",
          "valueType": "variable",
          "variableId": "in_onaccent"
        }
      ]
    },
    {
      "id": "button_hit",
      "name": "Button hit",
      "type": "Shape",
      "isVisible": true,
      "isLocked": false,
      "transform": {
        "x": 110,
        "y": 36,
        "rotation": 0,
        "scale_x": 1,
        "scale_y": 1,
        "opacity": 1,
        "skew_x": 0,
        "skew_y": 0
      },
      "children": [],
      "interactions": [
        {
          "id": "button_hit_onClick_0",
          "event": "onClick",
          "trigger": "onClick",
          "triggers": [
            "onClick",
            "Click"
          ],
          "action": "fireTrigger",
          "targetInputId": "in_press"
        },
        {
          "id": "button_hit_onPointerEnter_1",
          "event": "onPointerEnter",
          "trigger": "onPointerEnter",
          "triggers": [
            "onPointerEnter"
          ],
          "action": "fireTrigger",
          "targetInputId": "in_button_hover"
        },
        {
          "id": "button_hit_onPointerLeave_2",
          "event": "onPointerLeave",
          "trigger": "onPointerLeave",
          "triggers": [
            "onPointerLeave"
          ],
          "action": "fireTrigger",
          "targetInputId": "in_button_leave"
        },
        {
          "id": "button_hit_onPointerDown_3",
          "event": "onPointerDown",
          "trigger": "onPointerDown",
          "triggers": [
            "onPointerDown"
          ],
          "action": "fireTrigger",
          "targetInputId": "in_button_down"
        }
      ],
      "width": 192,
      "height": 62,
      "geometry": {
        "type": "Rectangle",
        "width": 192,
        "height": 62,
        "cornerRadius": 0,
        "corner_radius": [
          0,
          0,
          0,
          0
        ]
      },
      "style": {
        "fill": {
          "type": "Solid",
          "color": "#000000",
          "opacity": 0.001
        },
        "stroke": {
          "color": "transparent",
          "width": 0
        }
      },
      "zIndex": 5
    }
  ],
  "animations": [
    {
      "id": "anim_loading_on",
      "name": "Loading on",
      "duration": 0.34,
      "loop": false,
      "tracks": [
        {
          "id": "t_7",
          "object_id": "pill",
          "property": "geometry.width",
          "keyframes": [
            {
              "id": "k_8",
              "time": 0,
              "value": 180,
              "easing": "easeInOutCubic"
            },
            {
              "id": "k_9",
              "time": 0.32,
              "value": 50,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_10",
          "object_id": "label",
          "property": "transform.opacity",
          "keyframes": [
            {
              "id": "k_11",
              "time": 0,
              "value": 1,
              "easing": "easeOutCubic"
            },
            {
              "id": "k_12",
              "time": 0.1,
              "value": 0,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_13",
          "object_id": "arrow",
          "property": "transform.opacity",
          "keyframes": [
            {
              "id": "k_14",
              "time": 0,
              "value": 1,
              "easing": "easeOutCubic"
            },
            {
              "id": "k_15",
              "time": 0.1,
              "value": 0,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_16",
          "object_id": "spinner",
          "property": "transform.opacity",
          "keyframes": [
            {
              "id": "k_17",
              "time": 0,
              "value": 0,
              "easing": "linear"
            },
            {
              "id": "k_18",
              "time": 0.2,
              "value": 0,
              "easing": "easeOutCubic"
            },
            {
              "id": "k_19",
              "time": 0.34,
              "value": 1,
              "easing": "easeOutQuart"
            }
          ]
        }
      ]
    },
    {
      "id": "anim_loading_off",
      "name": "Loading off",
      "duration": 0.42,
      "loop": false,
      "tracks": [
        {
          "id": "t_20",
          "object_id": "pill",
          "property": "geometry.width",
          "keyframes": [
            {
              "id": "k_21",
              "time": 0,
              "value": 50,
              "easing": "cubic-bezier(0.2, 0.9, 0.3, 1.35)"
            },
            {
              "id": "k_22",
              "time": 0.42,
              "value": 180,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_23",
          "object_id": "label",
          "property": "transform.opacity",
          "keyframes": [
            {
              "id": "k_24",
              "time": 0,
              "value": 0,
              "easing": "linear"
            },
            {
              "id": "k_25",
              "time": 0.2,
              "value": 0,
              "easing": "easeOutCubic"
            },
            {
              "id": "k_26",
              "time": 0.36,
              "value": 1,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_27",
          "object_id": "arrow",
          "property": "transform.opacity",
          "keyframes": [
            {
              "id": "k_28",
              "time": 0,
              "value": 0,
              "easing": "linear"
            },
            {
              "id": "k_29",
              "time": 0.2,
              "value": 0,
              "easing": "easeOutCubic"
            },
            {
              "id": "k_30",
              "time": 0.36,
              "value": 1,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_31",
          "object_id": "spinner",
          "property": "transform.opacity",
          "keyframes": [
            {
              "id": "k_32",
              "time": 0,
              "value": 1,
              "easing": "easeOutCubic"
            },
            {
              "id": "k_33",
              "time": 0.1,
              "value": 0,
              "easing": "easeOutQuart"
            }
          ]
        }
      ]
    },
    {
      "id": "anim_spin",
      "name": "Spin",
      "duration": 0.8,
      "loop": true,
      "tracks": [
        {
          "id": "t_34",
          "object_id": "spinner",
          "property": "transform.rotation",
          "keyframes": [
            {
              "id": "k_35",
              "time": 0,
              "value": 0,
              "easing": "linear"
            },
            {
              "id": "k_36",
              "time": 0.8,
              "value": 360,
              "easing": "easeOutQuart"
            }
          ]
        }
      ]
    },
    {
      "id": "anim_button_hover_in",
      "name": "Button hover in",
      "duration": 0.3,
      "loop": false,
      "tracks": [
        {
          "id": "t_45",
          "object_id": "button",
          "property": "transform.scale_x",
          "keyframes": [
            {
              "id": "k_46",
              "time": 0,
              "value": 1,
              "easing": "cubic-bezier(0.2, 0.9, 0.3, 1.35)"
            },
            {
              "id": "k_47",
              "time": 0.26,
              "value": 1.03,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_48",
          "object_id": "button",
          "property": "transform.scale_y",
          "keyframes": [
            {
              "id": "k_49",
              "time": 0,
              "value": 1,
              "easing": "cubic-bezier(0.2, 0.9, 0.3, 1.35)"
            },
            {
              "id": "k_50",
              "time": 0.26,
              "value": 1.03,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_51",
          "object_id": "arrow",
          "property": "transform.x",
          "keyframes": [
            {
              "id": "k_52",
              "time": 0,
              "value": 56,
              "easing": "cubic-bezier(0.2, 0.9, 0.3, 1.35)"
            },
            {
              "id": "k_53",
              "time": 0.3,
              "value": 61,
              "easing": "easeOutQuart"
            }
          ]
        }
      ]
    },
    {
      "id": "anim_button_hover_out",
      "name": "Button hover out",
      "duration": 0.2,
      "loop": false,
      "tracks": [
        {
          "id": "t_54",
          "object_id": "button",
          "property": "transform.scale_x",
          "keyframes": [
            {
              "id": "k_55",
              "time": 0,
              "value": 1.03,
              "easing": "easeOutCubic"
            },
            {
              "id": "k_56",
              "time": 0.2,
              "value": 1,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_57",
          "object_id": "button",
          "property": "transform.scale_y",
          "keyframes": [
            {
              "id": "k_58",
              "time": 0,
              "value": 1.03,
              "easing": "easeOutCubic"
            },
            {
              "id": "k_59",
              "time": 0.2,
              "value": 1,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_60",
          "object_id": "arrow",
          "property": "transform.x",
          "keyframes": [
            {
              "id": "k_61",
              "time": 0,
              "value": 61,
              "easing": "easeOutCubic"
            },
            {
              "id": "k_62",
              "time": 0.2,
              "value": 56,
              "easing": "easeOutQuart"
            }
          ]
        }
      ]
    },
    {
      "id": "anim_button_press",
      "name": "Button press",
      "duration": 0.34,
      "loop": false,
      "tracks": [
        {
          "id": "t_37",
          "object_id": "button",
          "property": "transform.scale_x",
          "keyframes": [
            {
              "id": "k_38",
              "time": 0,
              "value": 1.03,
              "easing": "easeOutCubic"
            },
            {
              "id": "k_39",
              "time": 0.08,
              "value": 0.95,
              "easing": "cubic-bezier(0.2, 0.9, 0.3, 1.35)"
            },
            {
              "id": "k_40",
              "time": 0.34,
              "value": 1.03,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_41",
          "object_id": "button",
          "property": "transform.scale_y",
          "keyframes": [
            {
              "id": "k_42",
              "time": 0,
              "value": 1.03,
              "easing": "easeOutCubic"
            },
            {
              "id": "k_43",
              "time": 0.08,
              "value": 0.95,
              "easing": "cubic-bezier(0.2, 0.9, 0.3, 1.35)"
            },
            {
              "id": "k_44",
              "time": 0.34,
              "value": 1.03,
              "easing": "easeOutQuart"
            }
          ]
        }
      ]
    }
  ],
  "navigation": [],
  "animationFlow": [],
  "stateVariables": [],
  "stateMachine": {
    "inputs": [
      {
        "id": "in_accent",
        "name": "accent",
        "value": {
          "type": "Text",
          "value": "#FF5A1F",
          "defaultValue": "#FF5A1F"
        }
      },
      {
        "id": "in_onaccent",
        "name": "onAccent",
        "value": {
          "type": "Text",
          "value": "#FFFFFF",
          "defaultValue": "#FFFFFF"
        }
      },
      {
        "id": "in_labeltext",
        "name": "labelText",
        "value": {
          "type": "Text",
          "value": "Continue",
          "defaultValue": "Continue"
        }
      },
      {
        "id": "in_loading",
        "name": "loading",
        "value": {
          "type": "Boolean",
          "value": false,
          "defaultValue": false
        }
      },
      {
        "id": "in_press",
        "name": "press",
        "value": {
          "type": "Trigger",
          "value": false,
          "defaultValue": false
        }
      },
      {
        "id": "in_button_hover",
        "name": "Button hover",
        "value": {
          "type": "Trigger",
          "value": false,
          "defaultValue": false
        }
      },
      {
        "id": "in_button_leave",
        "name": "Button leave",
        "value": {
          "type": "Trigger",
          "value": false,
          "defaultValue": false
        }
      },
      {
        "id": "in_button_down",
        "name": "Button down",
        "value": {
          "type": "Trigger",
          "value": false,
          "defaultValue": false
        }
      }
    ],
    "layers": [
      {
        "id": "layer_loading",
        "name": "Loading",
        "entryStateId": "s_loading_off",
        "states": [
          {
            "id": "s_loading_off",
            "name": "Off",
            "loop": false,
            "transitions": [
              {
                "id": "tr_loading_off_0",
                "targetStateId": "s_loading_on",
                "duration": 0,
                "conditions": [
                  {
                    "inputId": "in_loading",
                    "inputName": "loading",
                    "op": "IsTrue",
                    "value": true
                  },
                  {
                    "inputId": "in_loading",
                    "inputName": "in_loading",
                    "op": "NotEqual",
                    "value": "__never__"
                  }
                ]
              }
            ]
          },
          {
            "id": "s_loading_on",
            "name": "On",
            "animationId": "anim_loading_on",
            "loop": false,
            "transitions": [
              {
                "id": "tr_loading_on_0",
                "targetStateId": "s_loading_back_off",
                "duration": 0,
                "conditions": [
                  {
                    "inputId": "in_loading",
                    "inputName": "loading",
                    "op": "IsFalse",
                    "value": true
                  },
                  {
                    "inputId": "in_loading",
                    "inputName": "in_loading",
                    "op": "NotEqual",
                    "value": "__never__"
                  }
                ]
              }
            ]
          },
          {
            "id": "s_loading_back_off",
            "name": "Back off",
            "animationId": "anim_loading_off",
            "loop": false,
            "transitions": [
              {
                "id": "tr_loading_back_off_0",
                "targetStateId": "s_loading_on",
                "duration": 0,
                "conditions": [
                  {
                    "inputId": "in_loading",
                    "inputName": "loading",
                    "op": "IsTrue",
                    "value": true
                  },
                  {
                    "inputId": "in_loading",
                    "inputName": "in_loading",
                    "op": "NotEqual",
                    "value": "__never__"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "id": "layer_spin",
        "name": "Spin",
        "entryStateId": "s_spin_spin",
        "states": [
          {
            "id": "s_spin_spin",
            "name": "Spin",
            "animationId": "anim_spin",
            "loop": true,
            "transitions": []
          }
        ]
      },
      {
        "id": "layer_button_feel",
        "name": "Button feel",
        "entryStateId": "s_button_feel_rest",
        "states": [
          {
            "id": "s_button_feel_rest",
            "name": "Rest",
            "loop": false,
            "transitions": [
              {
                "id": "tr_button_feel_rest_0",
                "targetStateId": "s_button_feel_in",
                "duration": 0,
                "conditions": [
                  {
                    "inputId": "in_button_hover",
                    "inputName": "Button hover",
                    "op": "IsTrue",
                    "value": true
                  }
                ]
              },
              {
                "id": "tr_button_feel_rest_1",
                "targetStateId": "s_button_feel_press_a",
                "duration": 0,
                "conditions": [
                  {
                    "inputId": "in_button_down",
                    "inputName": "Button down",
                    "op": "IsTrue",
                    "value": true
                  }
                ]
              }
            ]
          },
          {
            "id": "s_button_feel_in",
            "name": "In",
            "animationId": "anim_button_hover_in",
            "loop": false,
            "transitions": [
              {
                "id": "tr_button_feel_in_0",
                "targetStateId": "s_button_feel_out",
                "duration": 0,
                "conditions": [
                  {
                    "inputId": "in_button_leave",
                    "inputName": "Button leave",
                    "op": "IsTrue",
                    "value": true
                  }
                ]
              },
              {
                "id": "tr_button_feel_in_1",
                "targetStateId": "s_button_feel_press_a",
                "duration": 0,
                "conditions": [
                  {
                    "inputId": "in_button_down",
                    "inputName": "Button down",
                    "op": "IsTrue",
                    "value": true
                  }
                ]
              }
            ]
          },
          {
            "id": "s_button_feel_out",
            "name": "Out",
            "animationId": "anim_button_hover_out",
            "loop": false,
            "transitions": [
              {
                "id": "tr_button_feel_out_0",
                "targetStateId": "s_button_feel_in",
                "duration": 0,
                "conditions": [
                  {
                    "inputId": "in_button_hover",
                    "inputName": "Button hover",
                    "op": "IsTrue",
                    "value": true
                  }
                ]
              },
              {
                "id": "tr_button_feel_out_1",
                "targetStateId": "s_button_feel_press_a",
                "duration": 0,
                "conditions": [
                  {
                    "inputId": "in_button_down",
                    "inputName": "Button down",
                    "op": "IsTrue",
                    "value": true
                  }
                ]
              }
            ]
          },
          {
            "id": "s_button_feel_press_a",
            "name": "Press A",
            "animationId": "anim_button_press",
            "loop": false,
            "transitions": [
              {
                "id": "tr_button_feel_press_a_0",
                "targetStateId": "s_button_feel_press_b",
                "duration": 0,
                "conditions": [
                  {
                    "inputId": "in_button_down",
                    "inputName": "Button down",
                    "op": "IsTrue",
                    "value": true
                  }
                ]
              },
              {
                "id": "tr_button_feel_press_a_1",
                "targetStateId": "s_button_feel_out",
                "duration": 0,
                "conditions": [
                  {
                    "inputId": "in_button_leave",
                    "inputName": "Button leave",
                    "op": "IsTrue",
                    "value": true
                  }
                ]
              }
            ]
          },
          {
            "id": "s_button_feel_press_b",
            "name": "Press B",
            "animationId": "anim_button_press",
            "loop": false,
            "transitions": [
              {
                "id": "tr_button_feel_press_b_0",
                "targetStateId": "s_button_feel_press_a",
                "duration": 0,
                "conditions": [
                  {
                    "inputId": "in_button_down",
                    "inputName": "Button down",
                    "op": "IsTrue",
                    "value": true
                  }
                ]
              },
              {
                "id": "tr_button_feel_press_b_1",
                "targetStateId": "s_button_feel_out",
                "duration": 0,
                "conditions": [
                  {
                    "inputId": "in_button_leave",
                    "inputName": "Button leave",
                    "op": "IsTrue",
                    "value": true
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "logicNodes": []
  },
  "physics": {
    "enabled": false,
    "gravity": {
      "x": 0,
      "y": 9.8
    }
  },
  "backgroundVisible": false,
  "seo": {
    "title": "Button — Exode Motion UI",
    "description": "A button whose arrow leans in on hover and whose pill dips on press. Set loading and it folds into a spinner."
  }
}
