Last active
August 29, 2015 13:58
-
-
Save ryanflorence/9942055 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<x-toggle on=false> | |
<x-toggle-label value="on">on</x-toggle-label> | |
<x-toggle-knob> | |
<x-toggle-label value="off">off</x-toggle-label> | |
</x-toggle> | |
<!-- | |
all behavior is inside those components, then you can also | |
create a component that has *no behavior at all* but is | |
simply a template composing those together for your application | |
like an x-switch whose template is the above html. | |
--> | |
<x-switch on=false> | |
<!-- | |
This way, you allow people to create their own "convenience | |
components" (as I call them), allowing i18n and other | |
customizations | |
--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment