Collection
Plain text collection
Linked item
Warning: The parameter "link" in the collection__item component should be of type "string" but was recieved as type "boolean". in /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php on line 228
Unlinked item
Warning: The parameter "link" in the collection__item component should be of type "string" but was recieved as type "boolean". in /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php on line 228
Unlinked item
<div class="o-grid">
<div class="o-grid-4">
<!-- collection.blade.php -->
<div class="c-collection" data-uid="66388ccb59361">
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--action" href="https://link.link" data-uid="66388ccb58e83">
<div class="c-collection__content">
Linked item
</div>
</a>
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb58eeb">
<div class="c-collection__content">
Unlinked item
</div>
</div>
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb58f1e">
<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="66388ccb593ac">
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--action" href="https://helsingborg.se" data-uid="66388ccb59447">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5940c">
Linked item
</p>
</div>
</a>
<br />
<b>Warning</b>: The parameter <b>"link"</b> in the <b>collection__item</b> component should be of type <b>"string"</b> but was recieved as type <b>"boolean"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb594ea">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5947c">
Unlinked item
</p>
</div>
</div>
<br />
<b>Warning</b>: The parameter <b>"link"</b> in the <b>collection__item</b> component should be of type <b>"string"</b> but was recieved as type <b>"boolean"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb59583">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5953b">
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
This is a multiline
We also have defined link.
This is a multiline
Nothing more than that.
This is a multiline with an icon
We also have defined link.
This is a multiline with an icon
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="66388ccb59a1b">
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--action" href="https://link.link" data-uid="66388ccb59978">
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h2 class="c-typography c-typography__variant--h2" data-uid="66388ccb5991b">
This is a multiline
</h2> <!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5994c">
We also have defined link.
</p>
</div>
</a>
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb599f4">
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h3 class="c-typography c-typography__variant--h3" data-uid="66388ccb599a7">
This is a multiline
</h3> <!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb599ce">
Nothing more than that.
</p>
</div>
</div>
</div> </div>
<div class="o-grid-4">
<!-- collection.blade.php -->
<div class="c-collection" data-uid="66388ccb59bb6">
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--action" href="https://link.link" data-uid="66388ccb59a95">
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="66388ccb59a4f">
This is a multiline with an icon
</h4> <!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb59a72">
We also have defined link.
</p>
</div>
</a>
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb59b92">
<div class="c-collection__icon">
<!-- icon.blade.php -->
<span class="c-icon c-icon--assignment c-icon--material c-icon--material-assignment material-symbols-outlined material-symbols-outlined--filled c-icon--size-md" material-symbol="assignment" role="img" aria-label="Icon: Undefined" alt="Icon: Undefined" data-nosnippet="" translate="no" aria-hidden="true" data-uid="66388ccb59af1">
</span>
</div>
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="66388ccb59b48">
This is a multiline with an icon
</h4> <!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb59b6d">
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 multiline
We also have defined a icon and a action link.
This is a multiline
This has the same configuration as above. But applied a link to the item. Actions then dissapear.
<div class="o-grid">
<div class="o-grid-4">
<!-- collection.blade.php -->
<div class="c-collection" data-uid="66388ccb5a758">
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb5a562">
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="66388ccb5a50a">
This is a multiline
</h4> <!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5a537">
We also have defined a icon and a action link.
</p>
</div>
</div>
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb5a6b1">
<div class="c-collection__icon">
<!-- icon.blade.php -->
<span class="c-icon c-icon--home c-icon--material c-icon--material-home material-symbols-outlined material-symbols-outlined--filled c-icon--size-md" material-symbol="home" role="img" aria-label="Icon: Undefined" alt="Icon: Undefined" data-nosnippet="" translate="no" aria-hidden="true" data-uid="66388ccb5a59c">
</span>
</div>
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="66388ccb5a5cf">
I'm an imposter!
</h4> <!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5a5f5">
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="66388ccb5a67e">
<!-- icon.blade.php -->
<span class="c-icon c-icon--star c-icon--material c-icon--material-star material-symbols-outlined material-symbols-outlined--filled c-icon--size-md" material-symbol="star" role="img" aria-label="Icon: Undefined" alt="Icon: Undefined" data-nosnippet="" translate="no" aria-hidden="true" data-uid="66388ccb5a625">
</span>
</a>
</div>
</div>
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--action" href="http://helsingborg.se" data-uid="66388ccb5a72f">
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="66388ccb5a6de">
This is a multiline
</h4> <!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5a706">
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
Warning: The parameter "link" in the collection__item component should be of type "string" but was recieved as type "boolean". in /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php on line 228
Collection modifier
This utilizes the "bordered" and will therefore display differently.
Linked item
Warning: The parameter "link" in the collection__item component should be of type "string" but was recieved as type "boolean". in /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php on line 228
Unlinked item
Warning: The parameter "link" in the collection__item component should be of type "string" but was recieved as type "boolean". in /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php on line 228
Unlinked item
Warning: The parameter "link" in the collection__item component should be of type "string" but was recieved as type "boolean". in /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php on line 228
Collection modifier
This utilizes the "compact" and will therefore display differently.
Linked item
Warning: The parameter "link" in the collection__item component should be of type "string" but was recieved as type "boolean". in /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php on line 228
Unlinked item
Warning: The parameter "link" in the collection__item component should be of type "string" but was recieved as type "boolean". in /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php on line 228
Unlinked item
Warning: The parameter "link" in the collection__item component should be of type "string" but was recieved as type "boolean". in /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php on line 228
Collection modifier
This utilizes the "sharp" and will therefore display differently.
Linked item
Warning: The parameter "link" in the collection__item component should be of type "string" but was recieved as type "boolean". in /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php on line 228
Unlinked item
Warning: The parameter "link" in the collection__item component should be of type "string" but was recieved as type "boolean". in /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php on line 228
Unlinked item
Warning: The parameter "link" in the collection__item component should be of type "string" but was recieved as type "boolean". in /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php on line 228
Collection modifier
This utilizes the "sharpBottom" and will therefore display differently.
Linked item
Warning: The parameter "link" in the collection__item component should be of type "string" but was recieved as type "boolean". in /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php on line 228
Unlinked item
Warning: The parameter "link" in the collection__item component should be of type "string" but was recieved as type "boolean". in /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php on line 228
Unlinked item
Warning: The parameter "link" in the collection__item component should be of type "string" but was recieved as type "boolean". in /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php on line 228
Collection modifier
This utilizes the "sharpTop" and will therefore display differently.
Linked item
Warning: The parameter "link" in the collection__item component should be of type "string" but was recieved as type "boolean". in /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php on line 228
Unlinked item
Warning: The parameter "link" in the collection__item component should be of type "string" but was recieved as type "boolean". in /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php on line 228
Unlinked item
Warning: The parameter "link" in the collection__item component should be of type "string" but was recieved as type "boolean". in /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php on line 228
Collection modifier
This utilizes the "unbox" and will therefore display differently.
Linked item
Warning: The parameter "link" in the collection__item component should be of type "string" but was recieved as type "boolean". in /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php on line 228
Unlinked item
Warning: The parameter "link" in the collection__item component should be of type "string" but was recieved as type "boolean". in /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php on line 228
Unlinked item
<div class="o-grid">
<div class="o-grid-4">
<!-- collection.blade.php -->
<div class="c-collection c-collection--bordered" data-uid="66388ccb5ad5e">
<br />
<b>Warning</b>: The parameter <b>"link"</b> in the <b>collection__item</b> component should be of type <b>"string"</b> but was recieved as type <b>"boolean"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb5ae22">
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="66388ccb5ad93">
Collection modifier
</h4>
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5adc2">
This utilizes the "bordered" and will therefore display differently.
</p>
</div>
</div>
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--action" href="https://helsingborg.se" data-uid="66388ccb5ae7e">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5ae54">
Linked item
</p>
</div>
</a>
<br />
<b>Warning</b>: The parameter <b>"link"</b> in the <b>collection__item</b> component should be of type <b>"string"</b> but was recieved as type <b>"boolean"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb5aeec">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5aeaa">
Unlinked item
</p>
</div>
</div>
<br />
<b>Warning</b>: The parameter <b>"link"</b> in the <b>collection__item</b> component should be of type <b>"string"</b> but was recieved as type <b>"boolean"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb5af61">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5af21">
Unlinked item
</p>
</div>
</div>
</div> </div>
<div class="o-grid-4">
<!-- collection.blade.php -->
<div class="c-collection c-collection--compact" data-uid="66388ccb5af98">
<br />
<b>Warning</b>: The parameter <b>"link"</b> in the <b>collection__item</b> component should be of type <b>"string"</b> but was recieved as type <b>"boolean"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb5b029">
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="66388ccb5afc2">
Collection modifier
</h4>
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5afe9">
This utilizes the "compact" and will therefore display differently.
</p>
</div>
</div>
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--action" href="https://helsingborg.se" data-uid="66388ccb5b089">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5b060">
Linked item
</p>
</div>
</a>
<br />
<b>Warning</b>: The parameter <b>"link"</b> in the <b>collection__item</b> component should be of type <b>"string"</b> but was recieved as type <b>"boolean"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb5b0fc">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5b0b3">
Unlinked item
</p>
</div>
</div>
<br />
<b>Warning</b>: The parameter <b>"link"</b> in the <b>collection__item</b> component should be of type <b>"string"</b> but was recieved as type <b>"boolean"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb5b15c">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5b124">
Unlinked item
</p>
</div>
</div>
</div> </div>
<div class="o-grid-4">
<!-- collection.blade.php -->
<div class="c-collection c-collection--sharp" data-uid="66388ccb5b18c">
<br />
<b>Warning</b>: The parameter <b>"link"</b> in the <b>collection__item</b> component should be of type <b>"string"</b> but was recieved as type <b>"boolean"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb5b228">
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="66388ccb5b1b2">
Collection modifier
</h4>
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5b1e6">
This utilizes the "sharp" and will therefore display differently.
</p>
</div>
</div>
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--action" href="https://helsingborg.se" data-uid="66388ccb5b27d">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5b256">
Linked item
</p>
</div>
</a>
<br />
<b>Warning</b>: The parameter <b>"link"</b> in the <b>collection__item</b> component should be of type <b>"string"</b> but was recieved as type <b>"boolean"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb5b2e7">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5b2a7">
Unlinked item
</p>
</div>
</div>
<br />
<b>Warning</b>: The parameter <b>"link"</b> in the <b>collection__item</b> component should be of type <b>"string"</b> but was recieved as type <b>"boolean"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb5b353">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5b314">
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="66388ccb5b389">
<br />
<b>Warning</b>: The parameter <b>"link"</b> in the <b>collection__item</b> component should be of type <b>"string"</b> but was recieved as type <b>"boolean"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb5b417">
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="66388ccb5b3b2">
Collection modifier
</h4>
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5b3d9">
This utilizes the "sharpBottom" and will therefore display differently.
</p>
</div>
</div>
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--action" href="https://helsingborg.se" data-uid="66388ccb5b474">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5b44c">
Linked item
</p>
</div>
</a>
<br />
<b>Warning</b>: The parameter <b>"link"</b> in the <b>collection__item</b> component should be of type <b>"string"</b> but was recieved as type <b>"boolean"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb5b4e0">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5b49d">
Unlinked item
</p>
</div>
</div>
<br />
<b>Warning</b>: The parameter <b>"link"</b> in the <b>collection__item</b> component should be of type <b>"string"</b> but was recieved as type <b>"boolean"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb5b54a">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5b50c">
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="66388ccb5b580">
<br />
<b>Warning</b>: The parameter <b>"link"</b> in the <b>collection__item</b> component should be of type <b>"string"</b> but was recieved as type <b>"boolean"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb5b60d">
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="66388ccb5b5a9">
Collection modifier
</h4>
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5b5cf">
This utilizes the "sharpTop" and will therefore display differently.
</p>
</div>
</div>
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--action" href="https://helsingborg.se" data-uid="66388ccb5b661">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5b63b">
Linked item
</p>
</div>
</a>
<br />
<b>Warning</b>: The parameter <b>"link"</b> in the <b>collection__item</b> component should be of type <b>"string"</b> but was recieved as type <b>"boolean"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb5b6c8">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5b68b">
Unlinked item
</p>
</div>
</div>
<br />
<b>Warning</b>: The parameter <b>"link"</b> in the <b>collection__item</b> component should be of type <b>"string"</b> but was recieved as type <b>"boolean"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb5b72f">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5b6f3">
Unlinked item
</p>
</div>
</div>
</div> </div>
<div class="o-grid-4">
<!-- collection.blade.php -->
<div class="c-collection c-collection--unbox" data-uid="66388ccb5b764">
<br />
<b>Warning</b>: The parameter <b>"link"</b> in the <b>collection__item</b> component should be of type <b>"string"</b> but was recieved as type <b>"boolean"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb5b7f1">
<div class="c-collection__content">
<!-- typography.blade.php original: h4 -->
<h4 class="c-typography c-typography__variant--h4" data-uid="66388ccb5b78d">
Collection modifier
</h4>
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5b7b4">
This utilizes the "unbox" and will therefore display differently.
</p>
</div>
</div>
<!-- collection__item.blade.php -->
<a class="c-collection__item c-collection__item--action" href="https://helsingborg.se" data-uid="66388ccb5b853">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5b81e">
Linked item
</p>
</div>
</a>
<br />
<b>Warning</b>: The parameter <b>"link"</b> in the <b>collection__item</b> component should be of type <b>"string"</b> but was recieved as type <b>"boolean"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb5b8bb">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5b87c">
Unlinked item
</p>
</div>
</div>
<br />
<b>Warning</b>: The parameter <b>"link"</b> in the <b>collection__item</b> component should be of type <b>"string"</b> but was recieved as type <b>"boolean"</b>. in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>228</b><br />
<!-- collection__item.blade.php -->
<div class="c-collection__item" data-uid="66388ccb5b92b">
<div class="c-collection__content">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="66388ccb5b8e7">
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. |