JSFiddle - React, Tailwind, and code Playground

by lizozomi

HTML

<script type="module">
  import clippy from 'https://unpkg.com/[email protected]/dist/index.js';
  clippy.load({
    name: 'Clippy',
    selector: 'my-clippy',
  	successCb: (agent) => {
    	console.log("Loaded!");
    	agent.show();
      agent.speak("Welcome to the DEMO!");
      agent.animate();
    },
    failCb: (e) => {
    	console.error(e)
    }
  })

</script>
<h1>
 ClippyTS Demo
</h1>
<div class="my-clippy"/>