Nectar IIIF
ReactJS UI component library of IIIF Presentation API 3.0 property fluent primitives.
Demo
Installation
Install the component from your command line using npm install
,
npm install @samvera/nectar-iiif
OR if you prefer Yarn, use yarn add
.
yarn add @samvera/nectar-iiif
Basic Usage
Add the Nectar component to your jsx
or tsx
code.
import {
Label,
Metadata,
RequiredStatement,
Summary
} from "@samvera/nectar-iiif";
const manifest = {...};
return (
<>
<Label label={manifest.label} as="h1" />
<Summary summary={manifest.summary} as="p" />
<Metadata metadata={manifest.metadata} />
<RequiredStatement requiredStatement={manifest.requiredStatement} />
</>
);