Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <div id="app" class="p-8">
  <div class="relative inline-block">
    <textarea class="px-2 py-4 rounded border outline-none focus:shadow-outline w-128 h-48" v-model="input"></textarea>

    <emoji-picker :search="search">
        class="absolute pin-t pin-r p-2 cursor-pointer emoji-invoker outline-none"
        slot-scope="{ events: { click: clickEvent } }"
        <button class="focus:outline-none h-6 w-6 focus:shadow-outline rounded-full">
          <svg viewBox="0 0 24 24" xmlns="" class="h-6 w-6 fill-current text-grey">
            <path d="M0 0h24v24H0z" fill="none"/>
            <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5zm-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11zm3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5z"/>
      <div slot="emoji-picker" slot-scope="{ emojis }">
        <div class="absolute z-10 border w-64 h-96 overflow-scroll p-4 rounded bg-white shadow t-4 -r-64">
          <div class="flex">
            <input class="rounded-full border py-2 px-4 outline-none focus:shadow-outline w-full" type="text" v-model="search" v-focus>
            <div v-for="(emojiGroup, category) in emojis" :key="category">
              <h5 class="text-grey-darker uppercase text-sm cursor-default mb-2 mt-4">{{ category }}</h5>
              <div class="flex flex-wrap justify-between emojis">
                  class="p-1 cursor-pointer rounded hover:bg-grey-light focus:outline-none focus:shadow-outline flex items-center justify-center h-6 w-6"
                  v-for="(emoji, emojiName) in emojiGroup"
                >{{ emoji }}</button>


                /* This demo uses Tailwind v0.6.4 */

* { font-family: Montserrat }

.w-128 { width: 32rem }
.h-96 { height: 24rem }
.t-4 { top: 1rem }
.-r-64 { right: -16rem }

.emoji-invoker { transition: all 0.2s }
.emoji-invoker:hover { transform: scale(1.1) }

.emojis:after { content: ""; flex: auto }



                // This demo uses Vue.js 2.5.13 and the newest version of the vue-emoji-picker


new Vue({
  el: '#app',
  data() {
    return {
      input: '',
      search: '',
  methods: {
    append(emoji) {
      this.input += emoji
  directives: {
    focus: {
      inserted(el) {