Collection

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.

Linked item
Unlinked item
Unlinked item

Linked item

Unlinked item

Unlinked item

Multiline text collection

Sometimes you just want more in life than single rows.

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.

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.

This is a multiline

This has the same configuration as above. But applied a link to the item. Actions then dissapear.

Collection with modifiers

Thie is a collections with all modifiers.

Collection modifier

This utilizes the "bordered" and will therefore display differently.

Linked item

Unlinked item

Unlinked item

Collection modifier

This utilizes the "compact" and will therefore display differently.

Linked item

Unlinked item

Unlinked item

Collection modifier

This utilizes the "sharp" and will therefore display differently.

Linked item

Unlinked item

Unlinked item

Collection modifier

This utilizes the "sharpBottom" and will therefore display differently.

Linked item

Unlinked item

Unlinked item

Collection modifier

This utilizes the "sharpTop" and will therefore display differently.

Linked item

Unlinked item

Unlinked item

Collection modifier

This utilizes the "unbox" and will therefore display differently.

Linked item

Unlinked item

Unlinked item

API

Parameter Default Description
div The element type of list.
false A array input list, contains 'content' and 'link' array keys.
false Adds borders.
false If the list should be displayed in a compressed format.
false Every single edge as sharp as hell, be careful!
false Makes the bottom really sharp. Yep.
false Makes the top really sharp. Yep.
false Removes the border.

CSS API

Variable Default Type Values Description
var(--border-radius) range - Border Radius
var(--border-width) range - Size
var(--space) range - Base spacing unit. Used for padding and margin inside components.
var(--base) range - Main unit that drives radius and spacing scales.
var(--color--primary) color - Primary
var(--corner-shape) select square, round, squircle, circular, bevel, scoop Corner Shape
var(--color--background-border) color - Manual companion token for borders on background surfaces.
var(--color--primary-contrast) color - Primary Contrast
var(--color--surface-contrast) color - Used for text and icons on surface backgrounds with less contrast.
var(--color--surface-border) color - Manual companion token for borders on surface elements.
var(--font-size-100) range - Base font size.