Skip to content
Snippets Groups Projects
CardList.vue 634 B
Newer Older
  • Learn to ignore specific revisions
  • <template>
      <div
        v-if="playlists.length > 0"
        v-masonry
        transition-duration="0"
    
        percent-position="true"
    
        stagger="0">
        <div class="ui cards">
          <playlist-card
            :playlist="playlist"
            v-masonry-tile
            v-for="playlist in playlists"
            :key="playlist.id"
          ></playlist-card>
    
        </div>
      </div>
    </template>
    
    <script>
    
    import PlaylistCard from '@/components/playlists/Card'
    
    export default {
      props: ['playlists'],
      components: {
        PlaylistCard
      }
    }
    </script>
    
    <!-- Add "scoped" attribute to limit CSS to this component only -->
    <style scoped>
    </style>