
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
documenthub-web-components
Advanced tools
With DocumentHub Web Components you can use in your Application a set of customizable lightning fast UI features.
You can simply use documenthub-web-components
inside your React application by installing its module via npm i documenthub-web-components
.
Import a module via import { Article, Document, Form, Page, Quiz } from "documenthub-web-components";
Display a document as an article.
<Article
catalogid="your-catalog-id",
documentid="document-id",
language="en" , //optional
headings="false", //optional
toc="false", //optional
scrollUp="true", //optional
token="aaa.bbb.ccc" //optional
/>
Display a document.
<Document
catalogid=""your-catalog-id",
documentid="document-id",
language="en" , //optional
headings="false", //optional
toc="true" //optional
token="aaa.bbb.ccc" //optional
/>
Use form component to be able to edit a document via form fields.
<Form
catalogid=""your-catalog-id",
documentid="document-id",
language="en" , //optional
/>
Display content as a page.
<Form
catalogid=""your-catalog-id",
documentid="document-id",
language="en" , //optional
/>
e.g
"sections": [
"A": {
"title": "",
"body": "",
"randomQuestions": true,
"numberOfQuestions": 5,
"passingPercent": 80
}
],
"questions": [
{
"id": "q1",
"section": "A,"
"question": "What does <em>HTML</em> stand for?",
"body": "",
"answers": [
...
{
"catalogId": "",
"documentId": "",
"quiz": "",
"libraryId": "",
"userId": "",
"startTime": "",
"restartTimes": [],
"finishTime": "",
"passingScore": 80,
"score": 0,
"scorePerSection": [
0,
0,
0
],
"sections": {
"A": {
"title": "",
"body": "",
"passingScore": 80
}
},
"questions": [
{
"id": "q1",
"section": "A",
"question": "What does <em>HTML</em> stand for?",
"body": "",
"answers": [
{
"id": "1",
"answer": "Hyperlinks and Text Markup Language",
"valid": false
}
]
}
],
"responses": {
"q1": [
"a1"
],
"q2": [
"a3",
"a4"
],
"q3": [],
"q5": []
}
}
{
"catalog": "",
"document": "",
"language": "",
"library": "",
"user": "",
"numberOfModules": 10,
"progress": ["01.01", "01.02"],
"checkpoints": ?
}
You can simply use DocumentHub Web Components inside your page by including a js and a css file.
Import the js module via
<script
type="module"
src='https://unpkg.com/documenthub-web-components@latest/dist/lib/index.js'>
</script>
Import the css module via
<link rel="stylesheet" href="https://unpkg.com/documenthub-web-components@latest/dist/lib/index.css">
<documenthub-article
catalogid="catalog-id"
documentid="document-id"
language="en" //optional
headings="false" //optional
token="aaa.bbb.ccc"
></documenthub-article>
<documenthub-document
catalogid="catalog-id"
documentid="document-id"
language="en" //optional
headings="false" //optional
token="aaa.bbb.ccc"
></documenthub-document>
<documenthub-form
catalogid="catalog-id"
documentid="document-id"
language="en" //optional
token="aaa.bbb.ccc"
></documenthub-form>
<documenthub-page
catalogid="catalog-id"
documentid="document-id"
headings="false" //optional
token="aaa.bbb.ccc"g"
></documenthub-page>
FAQs
DocumentHub Web Components
The npm package documenthub-web-components receives a total of 0 weekly downloads. As such, documenthub-web-components popularity was classified as not popular.
We found that documenthub-web-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.