DDHub Web Components are a collection of Web Components developed and maintained by DialogData. Components are developed using lit-element, bootstrap 4 and font-awesome icons
Install the web components library from npm
npm install ddhub-web-components-lib
In order for the DDHub components to work you need to import the theme, there are two ways:
@import "~ddhub-web-components-lib/theme/scss/theme";
@import "~ddhub-web-components-lib/theme/scss/theme.css";
import 'ddhub-web-components-lib/components/calendar/calendar.js';
or
import 'ddhub-web-components-lib/components/calendar/calendar';
<dd-calendar></dd-calendar>
In the project directory, you can run:
Runs the storybook from where you can test your web component.
Open http://localhost:9009 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Builds the library for production to the dist
folder.
It builds the web components as well as the theme