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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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"></div>




                new Vue({
  el: "#app",
  template: `
<section class="section" :style="{ color: color }">
  <h1 class="title">Vue Checkbox Selection Demo</h1>
  <p class="content">
    This demo binds an array of booleans to a set of checkboxes using <code>v-model</code>.  If all the checkboxes are selected, the "All selected?" tag indicates "true" and turns green.  The check for whether everything is selected is a reactive computed.
<p class="content">
  Select various combinations of the checkboxes below
  <div class="content" v-for="(itm,index) in items" :key="index">
    <div class="control">
      <div class="field">
        <label class="checkbox">{{ index }}
        <input type="checkbox" v-model="items[index]" />
  <p class="content">
    All selected? {{ allSelected }}
    <div class="tags has-addons">
      <span class="tag">All selected?</span>
      <span class="tag" :class="{ 'is-success' : allSelected, 'is-danger': !allSelected }">{{ allSelected }}</span>
  data: {
    color: "green",
    items: [
  computed: {
    allSelected() {
      return this.items.every( itm => itm );