Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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.


Auto Save

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.


                <!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Phone App</title>
    <link rel="stylesheet" href="style.css">

<div id="app" class="font-sans min-h-screen flex items-center justify-center">
  <!-- This button will probably be surrounded... -->
  <!-- a lot of markup for your site. -->

  <!-- At the very end of your markup to avoid absolute/relative positioning bugs... -->

  <div id='modals'></div>

<!-- ...Insert the portal  here.-->


.fade-shrink-in-leave-active {
  transition: all .3s ease;

.fade-shrink-in-leave-to {
  opacity: 0;
  transform: scale(1.1);



Vue.component('remove-phone-button', {
  template: `
    <button class="bg-blue text-white font-semibold px-4 py-2 rounded hover:bg-blue-dark inline-flex items-center"
        <span>Remove Phone</span>
         <portal target-el="#modals">
           <remove-phone-modal :open="open" @close="close" />
  data() {
    return {
      open: false,
  methods: {
    openModal() { = true
    close() { = false

Vue.component('remove-phone-modal', {
  template: `
    <transition name="fade-shrink-in" appear>
      <div v-show="open" @click="close" class="absolute pin p-8" style="background-color: hsla(0, 0%, 0%, .5)">
        <div @click.stop class="max-w-sm w-full mx-auto bg-white rounded p-6 mt-8 z-10 shadow-lg">
          <h1 class="font-normal text-xl text-center mb-6">
           Are you sure you want to remove this phone from your list?
          <div class="text-right">
              <button type="button" class="text-grey-darker hover:text-black hover:underline mr-6" @click="close">
              <button type="button" class="bg-blue text-white font-semibold px-4 py-2 rounded hover:bg-blue-dark">
  props: ['open'],
  methods: {
    close() {

const app = new Vue({
  el: '#app',