Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <div id="app" class="text-black antialiased flex justify-center bg-gray-100 min-h-screen">
  <div class="w-full max-w-4xl px-4">
    <!-- header -->
    <div class="text-3xl font-bold pt-6 pb-4 px-2">Notes</div>
    <!-- Grid -->
    <div class="flex flex-wrap">
      <!-- notes -->
      <div class="w-1/3 p-2" v-for="(note, i) in notes">
        <div class="w-full bg-white border border-gray-200 h-40 flex items-start">
          <textarea v-model="notes[i]" class="flex-1 bg-transparent h-32 py-4 px-5" placeholder="Your note...">
          </textarea>
          <button class="ion-md-close text-gray-300 hover:text-gray-600 py-1 px-3" @click="notes.splice(i, 1)"></button>
        </div>
      </div>
      <!-- new note -->
      <div class="w-1/3 p-2">
        <div @click="notes.push('')" class="h-40 border border-dashed border-gray-300 flex items-center justify-center cursor-pointer hover:bg-white">
          <div class="text-4xl font-thin text-gray-400">+</div>
        </div>
      </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                input, textarea, button:focus {
  outline: none;
  resize: none;
}

input::placeholder {
  color: #cbd5e0;
  opacity: 1;
}
              
            
!

JS

              
                var app = new Vue({
  el: '#app',
  data: {
    notes: [
      'Plumber: +1 555 800 8080',
      'Tailwind border styles: https://tailwindcss.com/docs/border-style/',
      'Buy granola and milk',
      'Peaky Blinders @ imdb: https://www.imdb.com/title/tt2442560/',
    ]
  },
  methods: {
    // functions go here
  }
})
              
            
!
999px

Console