
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
@samvera/nectar-iiif
Advanced tools
React.js UI component library of IIIF Presentation API 3.0 property fluent primitives.
React.js UI component library of IIIF Presentation API 3.0 property fluent primitives.
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
Add the Nectar component(s) to your jsx
or tsx
code.
import { Label, Summary } from "@samvera/nectar-iiif";
/**
* Some logic may be required to retrieve the IIIF Manifest.
*/
const manifest = {...};
return (
<>
<Label label={manifest.label} as="h1" />
<Summary summary={manifest.summary} as="p" />
</>
);
Primitives aim to cover most of the noted Descriptive and Linking properties noted in the IIIF Presentation API 3.0 specification. Some of these, specifically PartOf and Provider may have a more complex component structure.
Completed (initial release) and proposed primitives include:
Descriptive Properties
Linking Properties
Prop | Type | Default | Required |
---|---|---|---|
as | span , h1 , h2 , h3 , h4 , h5 , h6 , p , label , dt , dd | span | -- |
label | label | -- | Yes |
import { Label } from "@samvera/nectar-iiif";
return <Label label={manifest.label} as="h1" lang="en" />;
import { Homepage } from "@samvera/nectar-iiif";
Wrap resource label with homepage id.
return <Homepage homepage={manifest.homepage} />;
Wrap React children with homepage id.
return (
<Homepage homepage={manifest.homepage}>
<figure>...</figure>
</Homepage>
);
import { Metadata } from "@samvera/nectar-iiif";
return <Metadata metadata={manifest.metadata} />;
import { RequiredStatement } from "@samvera/nectar-iiif";
return <RequiredStatement requiredStatement={manifest.requiredStatement} />;
Prop | Type | Default | Required |
---|---|---|---|
as | ol , ul | ul | -- |
seeAlso | seeAlso | -- | Yes |
import { SeeAlso } from "@samvera/nectar-iiif";
return <SeeAlso seeAlso={manifest.seeAlso} as="li" />;
Prop | Type | Default | Required |
---|---|---|---|
as | span , h1 , h2 , h3 , h4 , h5 , h6 , p | span | -- |
summary | summary | -- | Yes |
import { Summary } from "@samvera/nectar-iiif";
return <Summary summary={manifest.summary} as="p" />;
Thumbnails are rendered to a relative HTML <img>
or <video>
element dependendent on the type of the resource in the thumbnail entry. Currently, only type
Image and Video are supported.
Prop | Type | Default | Required |
---|---|---|---|
thumbnail | thumbnail | -- | Yes |
altAsLabel | label | -- | -- |
import { Thumbnail } from "@samvera/nectar-iiif";
return <Thumbnail thumbnail={manifest.thumbnail} altAsLabel={manifest.label} />;
All primitives accept common HTMLElement attributes.
Prop | Type | Default |
---|---|---|
className | string , undefined | undefined |
style | CSSProperties , undefined | undefined |
lang | string , undefined | undefined |
title | string , undefined | undefined |
data-* | string , undefined | undefined |
aria-* | AriaAttributes , undefined | undefined |
The value of lang
will couple with InternationalString props to output the denoted label
, value
, summary
entries. If lang
is undefined, entries will default to the first entry in the array index.
FAQs
React.js UI component library of IIIF Presentation API 3.0 property fluent primitives.
We found that @samvera/nectar-iiif demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.