Skip to content

Image List ​

Loading...

<flint-image-list-item-bar> ​

A title/subtitle bar for flint-image-list-item.

  • Tag: <flint-image-list-item-bar>
  • Class: FlintImageListItemBar

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintImageListItemBar } from 'flint-ui';

Usage ​

html
<flint-image-list-item-bar></flint-image-list-item-bar>

Properties ​

PropertyAttributeTypeDefaultDescription
positionposition'bottom' | 'top' | 'below''bottom'Position hint for styling: 'bottom' (default overlay), 'top' (overlay), or 'below' (solid)

Slots ​

NameDescription
(default)Title text
subtitleSubtitle text
actionAn icon button or secondary action

CSS Custom Properties ​

PropertyDefault
--flint-image-bar-overlay-textvar(--flint-text-color-on-primary
--flint-font-family—
--flint-surface-1—
--flint-text-color—
--flint-border-color—
--flint-image-fitcover

<flint-image-list-item> ​

A single item inside a flint-image-list.

  • Tag: <flint-image-list-item>
  • Class: FlintImageListItem

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintImageListItem } from 'flint-ui';

Usage ​

html
<flint-image-list-item></flint-image-list-item>

Properties ​

PropertyAttributeTypeDefaultDescription
rowsrowsnumber1How many grid rows this item spans (quilted/woven only)
colscolsnumber1How many grid columns this item spans (quilted/woven only)
barPositionbar-position'overlay' | 'below''overlay'Position of the title bar: 'overlay' (default) or 'below'
weaveweave'odd' | 'even''odd'Woven variant: 'odd' or 'even' identity for alternating height
aspectRatioaspect-ratiostring'auto'CSS aspect-ratio for the cell (e.g. "1/1", "4/3", "3/4", "16/9", "9/16"). Set to "auto" (default) to let the grid row height control cell size.
fitfitImageFit'cover'How the image fills the cell: 'cover' (default, crops to fill) or 'contain' (letterboxes to fit without cropping).

Slots ​

NameDescription
(default)Place an &lt;img&gt; or any content here.
barPlace a flint-image-list-item-bar element here.

<flint-image-list> ​

A container that displays images in an organized grid layout. Supports standard, quilted, woven, and masonry variants.

  • Tag: <flint-image-list>
  • Class: FlintImageList

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintImageList } from 'flint-ui';

Usage ​

html
<flint-image-list></flint-image-list>

Properties ​

PropertyAttributeTypeDefaultDescription
variantvariantImageListVariant'standard'Layout variant
colscolsnumber3Number of columns
gapgapnumber4Gap between items (in px)
rowHeightrow-heightnumber164Row height for non-masonry variants (in px). Ignored when autoRows=true.
autoRowsauto-rowsbooleanfalseWhen true, row height is automatic (use with bar-position="below")

Slots ​

NameDescription
(default)Place flint-image-list-item elements here.

CSS Custom Properties ​

PropertyDefault
--flint-image-list-gap4px
--flint-image-list-row-height164px