mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
47f8717149
* update eslint, tsconfig + esbuild to handle new jsx transform * remove thing that breaks the new jsx transform * remove react imports * adjust grafana-icons build * is this the correct syntax? * try this * well this was much easier than expected... * change grafana-plugin-configs webpack config * fixes * fix lockfile * fix 2 more violations * use path.resolve instead of require.resolve * remove react import * fix react imports * more fixes * remove React import * remove import React from docs * remove another react import |
||
---|---|---|
.. | ||
src | ||
svg | ||
templates | ||
.gitignore | ||
.svgrrc.cjs | ||
CHANGELOG.md | ||
LICENSE_APACHE2 | ||
package.json | ||
README.md | ||
rollup.config.ts | ||
tsconfig.build.json | ||
tsconfig.json |
Grafana Saga Icons
This package contains the icon React components used in Grafana and Grafana plugins.
Uploading a new icon
To add a new icon to the library, open a PR which adds the SVG file for the icon into the svg
directory. The file should be named with the icon name in kebab-case. For example, if the icon name is MyIcon
, the file should be named my-icon.svg
. Once the PR is merged, the icon will be automatically generated and added to the library.
Development
- Clone the repository
- Run
yarn install
- After the installation, the icon components can be found in the
src/icons-gen
directory. - To regenerate/update the components, run
yarn generate
.