1.0.0 • Published 4 months ago
esri-cedar-components v1.0.0
Cedar Components
A component library for @esri/cedar written in Stencil.js intended to replace ember-cli-cedar.
Getting Started
First you must load the library into your application. You have two options
Script tag
You can load the library from a CDN via a script tag.
- Put a script tag similar to this
<script type='module' src='https://unpkg.com/@esri/cedar-component@0.0.1/dist/cedar-component.esm.js'></script>
in the head of your index.html
Installing from NPM
npm install --save esri-cedar-components
// app.js
import esri-cedar-chart from `esri-cedar-components`
Using the Component
Once you hvae loaded the library, you can use the <esri-cedar-chart>
component anywhere in your application, for example in JSX:
<esri-cedar-chart
definition={definition}
></esri-cedar-chart>
See the component documentation for details on the supported props and events.
Development
To run the local development server, clone this repo and run:
npm install
npm start
To build the component for production, run:
npm run build
To run the unit tests for the components, run:
npm test
Need help? Check out our docs here.