Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Gist-powered example

You can make examples from a gist. This text comes from the README.md file, while any *.html files will be turned into components. Any code in the (required) main.js file is evaluated.

Component dependencies are pulled in from npm via https://wzrd.in/.

<button on-tap='activate()'>click me!</button>
<style>
button {
background-color: #d00;
color: white;
font-size: 2em;
padding: 1em;
border-radius: 0.2em;
}
</style>
<script>
component.exports = {
activate: function () {
alert( 'activating!' );
},
events: {
tap: require( 'ractive-events-tap' )
}
}
</script>
var ractive = new BigButton({
el: demo
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment