Skip to content

Instantly share code, notes, and snippets.

@langolf
Last active February 22, 2020 10:01
Show Gist options
  • Save langolf/074585ac197915e3c7a991358d6b29da to your computer and use it in GitHub Desktop.
Save langolf/074585ac197915e3c7a991358d6b29da to your computer and use it in GitHub Desktop.
{
"id": "root",
"states": {
"Search Bar": {
"id": "Search Bar",
"states": {
"Inactive": {
"id": "Inactive",
"states": {},
"on": {
"focused": "#Active"
}
},
"Active": {
"id": "Active",
"states": {
"Empty": {
"id": "Empty",
"states": {}
},
"Text Entry": {
"id": "Text Entry",
"states": {},
"on": {
"submitted": "#Results"
}
},
"Results": {
"id": "Results",
"states": {}
}
},
"initial": "Empty",
"on": {
"canceled": "#Inactive",
"typed": "#Text Entry"
}
}
},
"initial": "Inactive",
"on": {}
}
},
"initial": "Search Bar",
"on": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment