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.


                <div id="app" v-cloak>
 <div class="container">
  <el-row class="search-wrapper" :gutter="10">
    <el-col :lg="12" :md="12" :sm="12" :xs="24">
      <el-input placeholder="Filter by name" icon="search" v-model="filter">
  	<div class="filter"> 
		<label><input type="radio" v-model="selectedCategory" value="All" /> All</label>
		<label><input type="radio" v-model="selectedCategory" value="Tech" /> Tech</label>
		<label><input type="radio" v-model="selectedCategory" value="Entertainment" /> Entertainment</label>
		<label><input type="radio" v-model="selectedCategory" value="Fictional" /> Fictional</label>
  </el-row> <!-- search wrapper -->
  <el-row :gutter="10">
    <el-col v-for="people in filteredPeople" :xs="24" :sm="12" :md="8">
      <div class="box"> 
        <div> {{ }} </div>
        <div class="box__subtitle"> {{ people.category }} </div>

    <el-col v-if="filteredPeople.length === 0" :xs="24" :sm="24" :md="24">
      <div class="box box__empty"> No Match Found</div>

  </el-row> <!-- results -->
 </div> <!-- container -->
</div> <!-- #app -->


                @import url('');

$material-shadow: 0 1px 3px 0 rgba(0,0,0,.15);

[v-cloak] {
  display: none;

body {
  margin: 0;
  padding: 0;
  background-color: #F3F5F7;
  font-family: 'Open Sans', sans-serif;

.search-wrapper {
  margin: 10px 0;

.col-space {
  content: '&nbsp;';
  @media screen and (max-width: 767px) { display: none; }

.container {
  max-width: 980px;
  margin: 20px auto;
  @media screen and (max-width: 1050px) { 
    width: 95%; 

.box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: $material-shadow;
  min-height: 150px;
  border-radius: 5px;
  background-color: white;
  margin-bottom: 10px;
  &__subtitle { 
    color: lighten(grey, 15%); 
  &__empty {
    background-color: transparent; box-shadow: none 
  &:hover { cursor: pointer; }

.el-select {
  width: 100%;


                var vm = new Vue({
	el:  "#app",
	data: {
          filter: '',
		people: [ 
			{ name: "Bill Gates", category: "Tech" },
			{ name: "Steve Jobs", category: "Tech" },
			{ name: "Jeff Bezos", category: "Tech" },
			{ name: "George Clooney", category: "Entertainment" },
			{ name: "Meryl Streep", category: "Entertainment" },
			{ name: "Amy Poehler", category: "Entertainment" },
			{ name: "Lady of Lórien", category: "Entertainment" },
			{ name: "BB8", category: "Fictional" },
			{ name: "Michael Scott", category: "Fictional" }
		selectedCategory: "All"
	computed: {
		filteredPeople: function() {
			var vm = this; 
			var category = vm.selectedCategory;
	 var people = this.people.filter((person) => {
			if(category === "All") {
				return people;
			} else {
				return people.filter(function(person) {
					return person.category === category;