The Collection component provides a reusable pattern for collection in the interface.
Plain text collection
Just a plain and simple collection. The first item is linked in each list. First collection utilizes the slot, and the second utlizes the array list input method.
Nothing more than that. Donec sed odio dui. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.
<div class="o-grid">
<div class="o-grid-4">
<!-- collection.blade.php -->
<div class="c-collection" data-uid="6a44f0ac8bab0" data-component="collection">
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--action" href="https://link.link" data-uid="6a44f0ac8b987" data-component="collection__item">
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h2 class="c-typography c-typography__variant--h2" data-uid="6a44f0ac8b8d4" data-component="typography">
This is a multiline
</h2><!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="6a44f0ac8b933" data-component="typography">
We also have defined link.
</p>
</div></a> <!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="6a44f0ac8ba68" data-component="collection__item">
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h3 class="c-typography c-typography__variant--h3" data-uid="6a44f0ac8b9da" data-component="typography">
This is a multiline
</h3><!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="6a44f0ac8ba21" data-component="typography">
Nothing more than that.
</p>
</div>
</div>
</div>
</div>
<div class="o-grid-4">
<!-- collection.blade.php -->
<div class="c-collection" data-uid="6a44f0ac8bf78" data-component="collection">
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--action" href="https://link.link" data-uid="6a44f0ac8bb92" data-component="collection__item">
<div class="c-collection__icon">
<!-- icon.blade.php -->
</div>
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="6a44f0ac8baf9" data-component="typography">
This is a multiline with an icon
</h4><!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="6a44f0ac8bb3b" data-component="typography">
We also have defined link.
</p>
</div></a> <!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="6a44f0ac8bf2d" data-component="collection__item">
<div class="c-collection__icon">
<!-- icon.blade.php -->
</div>
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="6a44f0ac8be97" data-component="typography">
This is a multiline with an icon
</h4><!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="6a44f0ac8bee3" data-component="typography">
Nothing more than that. Donec sed odio dui. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.
</p>
</div>
</div>
</div>
</div>
</div>
<div class="o-grid">
<div class="o-grid-4">
@collection([])
@collection__item(['link' => 'https://link.link'])
@typography(['element' => 'h4'])
This is a multiline
@endtypography
@typography([])
We also have defined link.
@endtypography
@endcollection__item
@collection__item()
@typography(['element' => 'h4'])
This is a multiline
@endtypography
@typography([])
Nothing more than that.
@endtypography
@endcollection__item
@endcollection
</div>
<div class="o-grid-4">
@collection([])
@collection__item([
'icon' => 'account_circle',
'link' => 'https://link.link'
])
@typography(['element' => 'h4'])
This is a multiline with an icon
@endtypography
@typography([])
We also have defined link.
@endtypography
@endcollection__item
@collection__item()
@slot('prefix')
<div class="c-collection__icon">
@icon(['icon' => 'assignment', 'size' => 'md'])
@endicon
</div>
@endslot
@typography(['element' => 'h4'])
This is a multiline with an icon
@endtypography
@typography([])
Nothing more than that. Donec sed odio dui. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.
@endtypography
@endcollection__item
@endcollection
</div>
</div>
Collection with secondary
This is a collection utilizing actions / secondary area.
This is a multiline
We also have defined a icon and a action link.
I'm an imposter!
I use my slots to mimic the above collection item.
<div class="o-grid">
<div class="o-grid-4">
<!-- collection.blade.php -->
<div class="c-collection" data-uid="6a44f0ac8c90c" data-component="collection">
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="6a44f0ac8c530" data-component="collection__item">
<div class="c-collection__icon">
<!-- icon.blade.php -->
</div>
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="6a44f0ac8c48f" data-component="typography">
This is a multiline
</h4><!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="6a44f0ac8c4e5" data-component="typography">
We also have defined a icon and a action link.
</p>
</div>
</div><!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="6a44f0ac8c78d" data-component="collection__item">
<div class="c-collection__icon">
<!-- icon.blade.php -->
</div>
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="6a44f0ac8c633" data-component="typography">
I'm an imposter!
</h4><!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="6a44f0ac8c676" data-component="typography">
I use my slots to mimic the above collection item.
</p>
</div>
<div class="c-collection__secondary">
<a class="c-link" href="https://link.link" target="_top" data-uid="6a44f0ac8c741" data-component="link"><!-- icon.blade.php -->
</a>
</div>
</div><!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--action" href="http://getmunicipio.com" data-uid="6a44f0ac8c86b" data-component="collection__item">
<div class="c-collection__icon">
<!-- icon.blade.php -->
</div>
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="6a44f0ac8c7e3" data-component="typography">
This is a multiline
</h4><!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="6a44f0ac8c825" data-component="typography">
This has the same configuration as above. But applied a link to the item. Actions then dissapear.
</p>
</div></a>
</div>
</div>
</div>
<div class="o-grid">
<div class="o-grid-4">
@collection()
@collection__item([
'icon' => 'home',
'action' => [
'icon' => 'star',
'link' => 'http://link.link'
]
])
@typography(['element' => 'h4'])
This is a multiline
@endtypography
@typography([])
We also have defined a icon and a action link.
@endtypography
@endcollection__item
@collection__item()
@slot('prefix')
<div class="c-collection__icon">
@icon(['icon' => 'home', 'size' => 'md'])
@endicon
</div>
@endslot
@typography(['element' => 'h4'])
I'm an imposter!
@endtypography
@typography([])
I use my slots to mimic the above collection item.
@endtypography
@slot('secondary')
@link(['href' => 'https://link.link'])
@icon(['icon' => 'star', 'size' => 'md'])
@endicon
@endlink
@endslot
@endcollection__item
@collection__item([
'icon' => 'home',
'action' => [
'icon' => 'star',
'link' => 'http://link.link'
],
'link' => 'http://getmunicipio.com'
])
@typography(['element' => 'h4'])
This is a multiline
@endtypography
@typography([])
This has the same configuration as above. But applied a link to the item. Actions then dissapear.
@endtypography
@endcollection__item
@endcollection
</div>
</div>
Collection with modifiers
Thie is a collections with all modifiers.
Collection modifier
This utilizes the "bordered" and will therefore display differently.