Collection
Plain text collection
<div class="o-grid">
<div class="o-grid-4">
<!-- collection.blade.php -->
<div class="c-collection" data-uid="67edfa3990ff5">
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--show-icon c-collection__item--action" href="https://link.link" data-uid="67edfa3990f0a">
<div class="c-collection__content">
Linked item
</div>
</a>
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa3990f5f">
<div class="c-collection__content">
Unlinked item
</div>
</div>
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa3990f97">
<div class="c-collection__content">
Unlinked item
</div>
</div>
</div> </div>
<div class="o-grid-4">
<!-- collection.blade.php -->
<div class="c-collection" data-uid="67edfa3991033">
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--show-icon c-collection__item--action" href="https://helsingborg.se" data-uid="67edfa39910c7">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa399108d">
Linked item
</p>
</div>
</a>
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa399112e">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa39910ff">
Unlinked item
</p>
</div>
</div>
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa399118b">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa399115f">
Unlinked item
</p>
</div>
</div>
</div> </div>
</div>
<div class="o-grid">
<div class="o-grid-4">
@collection()
@collection__item(['link' => "https://link.link"])
Linked item
@endcollection__item
@collection__item()
Unlinked item
@endcollection__item
@collection__item()
Unlinked item
@endcollection__item
@endcollection
</div>
<div class="o-grid-4">
@collection(
[
'list' => [
['content' => 'Linked item', 'link' => "https://helsingborg.se"],
'Unlinked item',
['content' => 'Unlinked item', 'link' => false],
],
]
)
@endcollection
</div>
</div>
Multiline text collection
<div class="o-grid">
<div class="o-grid-4">
<!-- collection.blade.php -->
<div class="c-collection" data-uid="67edfa39917c1">
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--show-icon c-collection__item--action" href="https://link.link" data-uid="67edfa3991701">
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h2 class="c-typography c-typography__variant--h2" data-uid="67edfa3991681">
This is a multiline
</h2> <!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa39916ca">
We also have defined link.
</p>
</div>
</a>
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa3991793">
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h3 class="c-typography c-typography__variant--h3" data-uid="67edfa3991737">
This is a multiline
</h3> <!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa3991766">
Nothing more than that.
</p>
</div>
</div>
</div> </div>
<div class="o-grid-4">
<!-- collection.blade.php -->
<div class="c-collection" data-uid="67edfa3991ac5">
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--show-icon c-collection__item--action" href="https://link.link" data-uid="67edfa399184f">
<div class="c-collection__icon">
<!-- icon.blade.php -->
<span class="c-icon c-icon--account-circle c-icon--material c-icon--material-account_circle material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" material-symbol="account_circle" role="img" data-nosnippet="" translate="no" alt="" aria-hidden="true" data-uid="67edfa399195e">
</span>
</div>
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="67edfa39917ef">
This is a multiline with an icon
</h4> <!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa3991821">
We also have defined link.
</p>
</div>
</a>
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa3991a89">
<div class="c-collection__icon">
<!-- icon.blade.php -->
<span class="c-icon c-icon--assignment c-icon--material c-icon--material-assignment material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" material-symbol="assignment" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" aria-hidden="false" data-uid="67edfa39919bc">
</span>
</div>
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="67edfa3991a26">
This is a multiline with an icon
</h4> <!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa3991a58">
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
<div class="o-grid">
<div class="o-grid-4">
<!-- collection.blade.php -->
<div class="c-collection" data-uid="67edfa3992366">
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa399207a">
<div class="c-collection__icon">
<!-- icon.blade.php -->
<span class="c-icon c-icon--home c-icon--material c-icon--material-home material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" material-symbol="home" role="img" data-nosnippet="" translate="no" alt="" aria-hidden="true" data-uid="67edfa39920b5">
</span>
</div>
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="67edfa3992002">
This is a multiline
</h4> <!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa3992044">
We also have defined a icon and a action link.
</p>
</div>
</div>
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa3992251">
<div class="c-collection__icon">
<!-- icon.blade.php -->
<span class="c-icon c-icon--home c-icon--material c-icon--material-home material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" material-symbol="home" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" aria-hidden="false" data-uid="67edfa3992102">
</span>
</div>
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="67edfa3992140">
I'm an imposter!
</h4> <!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa3992173">
I use my slots to mimic the above collection item.
</p>
</div>
<div class="c-collection__secondary">
<a class="c-link" id="" href="https://link.link" target="_top" data-uid="67edfa3992213">
<!-- icon.blade.php -->
<span class="c-icon c-icon--star c-icon--material c-icon--material-star material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" material-symbol="star" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" aria-hidden="false" data-uid="67edfa39921ac">
</span>
</a>
</div>
</div>
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--show-icon c-collection__item--action" href="http://helsingborg.se" data-uid="67edfa39922f5">
<div class="c-collection__icon">
<!-- icon.blade.php -->
<span class="c-icon c-icon--home c-icon--material c-icon--material-home material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined c-icon--size-md" material-symbol="home" role="img" data-nosnippet="" translate="no" alt="" aria-hidden="true" data-uid="67edfa399232a">
</span>
</div>
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="67edfa3992296">
This is a multiline
</h4> <!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa39922c5">
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://helsingborg.se'
])
@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
<div class="o-grid">
<div class="o-grid-4">
<!-- collection.blade.php -->
<div class="c-collection c-collection--bordered" data-uid="67edfa399287b">
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa399291c">
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="67edfa39928b7">
Collection modifier
</h4>
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa39928eb">
This utilizes the "bordered" and will therefore display differently.
</p>
</div>
</div>
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--show-icon c-collection__item--action" href="https://helsingborg.se" data-uid="67edfa3992981">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa3992950">
Linked item
</p>
</div>
</a>
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa39929e1">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa39929b5">
Unlinked item
</p>
</div>
</div>
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa3992a3b">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa3992a10">
Unlinked item
</p>
</div>
</div>
</div> </div>
<div class="o-grid-4">
<!-- collection.blade.php -->
<div class="c-collection c-collection--compact" data-uid="67edfa3992a85">
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa3992b0c">
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="67edfa3992ab4">
Collection modifier
</h4>
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa3992ae1">
This utilizes the "compact" and will therefore display differently.
</p>
</div>
</div>
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--show-icon c-collection__item--action" href="https://helsingborg.se" data-uid="67edfa3992b66">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa3992b3b">
Linked item
</p>
</div>
</a>
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa3992bbf">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa3992b96">
Unlinked item
</p>
</div>
</div>
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa3992c15">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa3992bec">
Unlinked item
</p>
</div>
</div>
</div> </div>
<div class="o-grid-4">
<!-- collection.blade.php -->
<div class="c-collection c-collection--sharp" data-uid="67edfa3992c4a">
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa3992cce">
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="67edfa3992c78">
Collection modifier
</h4>
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa3992ca3">
This utilizes the "sharp" and will therefore display differently.
</p>
</div>
</div>
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--show-icon c-collection__item--action" href="https://helsingborg.se" data-uid="67edfa3992d26">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa3992cfb">
Linked item
</p>
</div>
</a>
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa3992d80">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa3992d57">
Unlinked item
</p>
</div>
</div>
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa3992dd6">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa3992dad">
Unlinked item
</p>
</div>
</div>
</div> </div>
<div class="o-grid-4">
<!-- collection.blade.php -->
<div class="c-collection c-collection--sharp-bot" data-uid="67edfa3992e0a">
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa3992e9c">
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="67edfa3992e45">
Collection modifier
</h4>
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa3992e72">
This utilizes the "sharpBottom" and will therefore display differently.
</p>
</div>
</div>
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--show-icon c-collection__item--action" href="https://helsingborg.se" data-uid="67edfa3992ef4">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa3992ec9">
Linked item
</p>
</div>
</a>
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa3992f4c">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa3992f23">
Unlinked item
</p>
</div>
</div>
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa3992fa0">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa3992f78">
Unlinked item
</p>
</div>
</div>
</div> </div>
<div class="o-grid-4">
<!-- collection.blade.php -->
<div class="c-collection c-collection--sharp-top" data-uid="67edfa3992fd4">
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa3993056">
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="67edfa3993001">
Collection modifier
</h4>
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa399302c">
This utilizes the "sharpTop" and will therefore display differently.
</p>
</div>
</div>
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--show-icon c-collection__item--action" href="https://helsingborg.se" data-uid="67edfa39930ad">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa3993083">
Linked item
</p>
</div>
</a>
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa399310e">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa39930e6">
Unlinked item
</p>
</div>
</div>
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa399315d">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa3993137">
Unlinked item
</p>
</div>
</div>
</div> </div>
<div class="o-grid-4">
<!-- collection.blade.php -->
<div class="c-collection c-collection--unbox" data-uid="67edfa399318e">
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa3993207">
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="67edfa39931b8">
Collection modifier
</h4>
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa39931e0">
This utilizes the "unbox" and will therefore display differently.
</p>
</div>
</div>
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--show-icon c-collection__item--action" href="https://helsingborg.se" data-uid="67edfa399327a">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa3993240">
Linked item
</p>
</div>
</a>
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa39932d2">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa39932a9">
Unlinked item
</p>
</div>
</div>
<!-- collection__item.blade.php -->
<div class="c-collection__item c-collection__item--show-icon" data-uid="67edfa3993327">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="67edfa39932fe">
Unlinked item
</p>
</div>
</div>
</div> </div>
</div>
<div class="o-grid">
@foreach(['bordered', 'compact', 'sharp', 'sharpBottom', 'sharpTop', 'unbox'] as $modifier)
<div class="o-grid-4">
@collection(
[
$modifier => true,
'list' => [
['title' => 'Collection modifier', 'content' => 'This utilizes the "' . $modifier . '" and will therefore display differently.'],
['content' => 'Linked item', 'link' => "https://helsingborg.se"],
'Unlinked item',
['content' => 'Unlinked item', 'link' => false],
],
]
)
@endcollection
</div>
@endforeach
</div>
Blade component parameters
Key | Default value | Type | Available values | Description |
componentElement | div | string | - | The element type of list. |
list | false | boolean | - | A array input list, contains 'content' and 'link' array keys. |
bordered | false | boolean | - | Adds borders. |
compact | false | boolean | - | If the list should be displayed in a compressed format. |
sharp | false | boolean | - | Every single edge as sharp as hell, be careful! |
sharpBottom | false | boolean | - | Makes the bottom really sharp. Yep. |
sharpTop | false | boolean | - | Makes the top really sharp. Yep. |
unbox | false | boolean | - | Removes the border. |
id | string | - | The DOM id of the component. | |
classList | [] | array | - | Array containing wrapping classes array |
attributeList | [] | array | - | Array containing keys and values rendered as attributes |
containerAware | false | boolean | true/false | Makes the component container aware. Appends modifiers --size--xs/sm/md/lg to the component. |