Appearance
@fplan/components-dom
Installation
The package has peer dependency on browserslist. Make sure to install it and configure it.
Icons
To add new svg icons:
- Add new svg file into
packages/components-dom/src/Icon/svg - Run
pnpm iconsinpackages/components-dom/
If you want svg saved colored as provided use data-colored="true" on svg tag
Result:
Script located in packages/components-dom/icon-imports.cjs will create icons components and update FPIcons type.
Preview
Icons preview available in storybook preview http://localhost:6006/?path=/docs/icons--docs