Skip to content

@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:

  1. Add new svg file into packages/components-dom/src/Icon/svg
  2. Run pnpm icons in packages/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