
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
@teamhive/content-viewers
Advanced tools
Various content viewer web components for displaying different types of content.
| Content Type | Component |
|---|---|
| Images | hive-image-viewer |
| Videos | hive-video-viewer |
| Audio | hive-audio-viewer |
| Microsoft Documents | hive-document-viewer |
| HTML Interactives | hive-iframe-viewer |
| HTML Courses | hive-iframe-viewer |
npm i @teamhive/content-viewers
Somewhere in your app (e.g. main.ts for Angular):
import { defineCustomElements } from '@teamhive/content-viewers/dist/loader';
defineCustomElements(window);
Or if you already have another stencil component library, define them separately:
import { defineCustomElements as defineHiveContentViewers } from '@teamhive/content-viewers/dist/loader';
defineHiveContentViewers(window);
To leverage viewerjs built in styling, you will need to import the global stylesheet into your application (instead of us bundling it with each image-viewer instance).
@import '~viewerjs/dist/viewer.min.css';
| Attribute | Description |
|---|---|
src | The location of the content. |
| Viewer Component | Description |
|---|---|
hive-image-viewer | The image sized to the maximum width and height without cropping or stretching. |
hive-video-viewer | The video sized to the maximum width and height without cropping or stretching in the browser default player. Controls are enabled. |
hive-audio-viewer | The audio loaded in the browser default player. |
hive-document-viewer | Microsoft documents are loaded in an iframe using the Office Web Viewer. |
hive-iframe-viewer | Interactives or Courses are loaded in an iframe. |
FAQs
Hive Content Viewers
We found that @teamhive/content-viewers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 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
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.