mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* chore(storybook): run yarn dlx storybook@latest upgrade * chore(storybook): remove storybook/blocks patch * chore(yarn): clean up storybook dependencies * feat(storybook): migrate to v8 config via migration codemods * refactor(storybook): update stories to use v8 types via codemod * refactor(storybook): update stories to use preview-api instead of client-api * refactor(storybook): replace mdx usage of ArgsTable with PureArgsTable * refactor(storybook): migrate remaining mdx files to v8 storybook/blocks api * refactor(storybook): clean up mdx imports and blocks component names * chore(storybook): clean up typescript configuration * fix(frontend): align types/react versions across monorepo so grafana ui can be built * fix(storybook): pub back react-docgen-typescript and use ArgTypes so props tables work * chore(storybook): patch blocks package to expose Preview component * revert(storybook): revert changes related to using Canvas component in mdx files * Storybook upgrade: Fix icon typing (#87793) fix iconOptions typing * refactor(storybook): prefer as const over asserting types * revert(storybook): put back correct case in box.mdx --------- Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com> |
||
---|---|---|
.. | ||
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
.