This is a general guide to using umoja components. Refer to a component’s README or other documentation for specific details.
To use a umoja component in your code:
- From your project folder, install the component from npm.
npm install umoja-web-components
# requires node 10 & npm 6 or higher
- Import the component.
All components:
import 'umoja-web-components';
You can import a single component with it's file path: Example:
import 'umoja-web-components/components/button/button].js';
- Add the component to your application or component:
<umoja-component></umoja-component>