nulib-ds/clover
์๊ฐ
Dynamic accessiblity-focused IIIF viewer and design system in React or as web components. Use a template or compose your own. ๐
์น ๋ฐ ์ฑ ๊ฐ๋ฐ์ธก์ ๋ ์คํ ์ฆ๊ฐ
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- ๊ธฐ๋ก ์์ง ์ค
์๋ก ๊ฒน์น๋ ๊ธฐ๊ฐ์ ์์ฆ๊ฐ๋์ด๋ฉฐ ์ผ๋ณ ํฉ๊ณ๊ฐ ์๋๋๋ค. ์ธก์ ๊ฐ์ด ์์ผ๋ฉด ๋น์ ๋ก๋๋ค. ์คํ๋ ๊ด์ฌ๋๋ฅผ ๋ํ๋ด๋ฉฐ ํ์ง์ ๋ณด์ฅํ์ง ์์ต๋๋ค.
README.md
OriginalClover
A viewer as distinctive as your collections. Design a user experience rooted in
IIIF. Clover, a IIIF viewer made to fit any collection or project, is better than ever.
Use the Viewer as it is, or compose whatever suits your vision and your materials.
Install from npm as @nulib/clover and
use as React or web components.
Try Clover with your own collections:
https://clover.iiif.library.northwestern.edu
- Adaptable: images, audio, video, 3D objects and text, all in one viewer
- Accessible: WCAG 2.2 AA, ready for screen readers, with captions, strong contrast and more
- Seamless: takes on your institutionโs brand colors and fonts
- Composable: your own layout, from the same components as the templates
- Lightweight: about 100 kB for the Viewer, less for a layout of your own
- IIIF-native: built to the IIIF APIs, for a wide range of use cases
- Flexible: every part of Clover, in React or as web components
Get started
For templates, composing your own layout and every prop, see the documentation. To begin, choose your setup, then add the Viewer to a page.
React
You build your site with React. Add Clover to your app like any other package.
npm install @nulib/clover
import Viewer from "@nulib/clover";
import "@nulib/clover/styles.css";
export default function Item() {
return (
<Viewer iiifContent="https://api.dc.library.northwestern.edu/api/v2/works/3510cac2-1439-49f0-b30a-09ae19a0643d?as=iiif" />
);
}
Web components (npm)
Your site has a build step, but no React. Install Clover once, then use it on any page.
npm install @nulib/clover
import "@nulib/clover/web-components";
<clover-viewer
iiif-content="https://api.dc.library.northwestern.edu/api/v2/works/3510cac2-1439-49f0-b30a-09ae19a0643d?as=iiif"
></clover-viewer>
Web components (CDN)
Plain HTML or an embed, no build step. Paste one line into a CMS or a blog post.
<script src="https://cdn.jsdelivr.net/npm/@nulib/clover/dist/web-components/index.umd.js"></script>
<clover-viewer
iiif-content="https://api.dc.library.northwestern.edu/api/v2/works/3510cac2-1439-49f0-b30a-09ae19a0643d?as=iiif"
></clover-viewer>
The elements bring their own styles, so there is no stylesheet to add.
Compose with its parts
The Viewer is made of parts. Place them in a Root, in any order, for a layout of your
own.
import * as Clover from "@nulib/clover";
import "@nulib/clover/styles.css";
export default function Item() {
return (
<Clover.Root iiifContent="https://api.dc.library.northwestern.edu/api/v2/works/3510cac2-1439-49f0-b30a-09ae19a0643d?as=iiif">
<Clover.Body />
<Clover.Label as="h3" />
<Clover.Summary />
<Clover.Items />
</Clover.Root>
);
}
<clover-root
iiif-content="https://api.dc.library.northwestern.edu/api/v2/works/3510cac2-1439-49f0-b30a-09ae19a0643d?as=iiif"
>
<clover-body></clover-body>
<clover-label as="h3"></clover-label>
<clover-summary></clover-summary>
<clover-items></clover-items>
</clover-root>
Composing layouts says what
goes where. For AI agents, the docs are Markdown too, starting from
llms.txt.
Contributing
Please follow the contributing guidelines, and branch from
main.
License
MIT License. Copyright (c) 2026 Northwestern University Libraries.
Credits
The White Sewing Machine Company's bicycle catalog (1896), courtesy of Northwestern University Libraries; an Esu shrine, ยฉ 2025 Northwestern University; the Nuremberg judgment (1946), National Archives, via Wikimedia Commons.
๊ด๋ จ ํ๋ก์ ํธ ์ดํด๋ณด๊ธฐ
๋ถ๋ฌ์ค๋ ์คโฆ