Items
<Clover.Items /><clover-items>10 kB added to a page with a Root, gzipped27 kB added to a page with a <clover-root>, styles included, gzipped
A sequence and where the reader is in it: thumbnails in a slider, a list or a grid, or one item at a time.
<Clover.Root iiifContent={url}>
<Clover.Body />
<Clover.Items
layout=
style={{ "--clover-items-height": "rem" }}
/>
</Clover.Root><clover-root
iiif-content="https://clover.iiif.library.northwestern.edu/mocks/paged/manifest.json">
<clover-body></clover-body>
<clover-items
layout=
style="--clover-items-height: rem">
</clover-items>
</clover-root>API reference
Inside a Root<clover-root>, it lists the resource’s views (a spread is one item), and selecting one
goes there: a listbox whose selection follows focus and the arrow keys. On its own, it
lists a Collection’s members as links.
<clover-items>
Thumbnails, as Items draws them. Inside a clover-root, its views (or its Collection's members), choosing what it shows; alone, the members or views of what it is given, as links.
Examples
Grid
Use layout="grid" for thumbnails that wrap into rows.
<Clover.Items layout="grid" /><clover-items layout="grid"></clover-items>List
Use layout="list" for a column, each item’s title beside its picture.
<Clover.Items layout="list" /><clover-items layout="list"></clover-items>One at a time
Use layout="pager" for the count with Previous and Next, and no thumbnails. It steps a
spread at a time through a paged book.
<Clover.Items layout="pager" /><clover-items layout="pager"></clover-items>Size
Size the thumbnails with CSS: --clover-items-height for a slider’s pictures (default
8rem), --clover-items-size for a grid’s columns (10rem), --clover-items-gap
between them (1rem).
<Clover.Items style={{ "--clover-items-height": "5rem" }} /><clover-items style="--clover-items-height: 5rem"></clover-items>A Collection
Give it a Collection on its own, and it lists the members as links to each one’s
homepage, under the Collection’s label and summary.
<Clover.Items iiifContent="https://api.dc.library.northwestern.edu/api/v2/collections/c373ecd2-2c45-45f2-9f9e-52dc244870bd?as=iiif" /><clover-items
iiif-content="https://api.dc.library.northwestern.edu/api/v2/collections/c373ecd2-2c45-45f2-9f9e-52dc244870bd?as=iiif"></clover-items>Previous versions
Items<clover-items>replaces both the Slider and the Viewer’s thumbnail strip.- Sizes and breakpoints are CSS:
--clover-items-height,--clover-items-gap. onItemInteractionisonSelectclover-select.