Skip to content

Instantly share code, notes, and snippets.

Created July 22, 2019 15:12
What would you like to do?
{{! calling side }}
<:tab name="index.js">
<Snippet name="2-mirage-index" />
<:tab name="App.js">
<Snippet name="2-mirage-app" />
{{! Tabs template }}
{{#each as |tab|}}
{{on "click" this.setActiveTab tab}}
{{if (eq this.activeTab tab)
"text-gray-900 text-border-gray-900"
"text-gray-400 border-gray-200"
<div class="mt-6">
{{yield to=this.activeTab}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment