cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


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.

              button.alert.button>[@click="showAlert"] Show Alert
button.success.button[@click="hideAlert"] Hide Alert

  'Should the Alert be visible?
  strong[v-if="vis"] Yes
  strong[v-else] No

<my-alert :cvis.sync="vis"></my-alert>
Vue.component('my-alert', {
  template: `
    <h1>Alert Component</h1>
    <div class="callout" v-if="cvis">
      <p>This is the body of my alert component</p>
      <button class="secondary hollow button" @click="close">Close this Alert</button>     
  props: ['cvis'],
  methods: {
    close: function() {
      this.cvis = false

let vm = new Vue({
  el: 'body',
  data: {
    vis: true
  methods: {
    showAlert: function() {
      this.vis = true;
    hideAlert: function() {
      this.vis = false;

Loading ..................