Skip to content

Commit

Permalink
feat(#3): add item-classes prop to list component
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Apr 27, 2023
1 parent 232239a commit 121284a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,8 @@
<div
v-for="item of items"
:key="item.id"
class="ct-item-grid__item col-xxs-12 col-m-4"
class="ct-item-grid__item col-xxs-12"
:class="itemClasses"
>
<slot
name="item"
Expand Down Expand Up @@ -753,6 +754,10 @@ export default {
mixins: [ThemeMixin],
props: {
itemClasses: {
type: String,
default: 'col-m-4'
},
itemComponent: {
type: String,
default: 'CTPromoCard'
Expand Down

0 comments on commit 121284a

Please sign in to comment.