Icon set used with React Chart Editor
- Install the module with
npm installoryarn install. - Import into your project like so:
import {PlotScatterIcon} from 'plotly-icons'; - Add extra classes by adding a className to the imported icon.
- Export SVG files with "Inline Styles", as the script can't parse classes in svg. Ensure the files don't have fields like
data-namethat seem to be unsupported by React. - Run
npm run generateto convert SVG icons into React components.- Replace class with className in all generated React components (TODO: automate this).
- Run
npm run prepublishOnlyand ensure there are no errors.
© 2022 FiglinQ, Inc. MIT License.