grafana/packages/grafana-ui
Brendan O'Handley e331b778c1
Combobox: Add a warning for combobox when exceeding the recommended amount of options (#96070)
* add a warning for components when they exceed the recommended options amount

* Update packages/grafana-ui/src/components/Combobox/Combobox.tsx

Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com>

* Update packages/grafana-ui/src/components/Combobox/Combobox.tsx

Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com>

* log faro

* log once with flag

* log in setItems

* move logOptions to utils and write tests

* import function, update betterer for combobox

* Fix lint errors

* log once without the try

* fix tests

---------

Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com>
Co-authored-by: joshhunt <josh@trtr.co>
2024-11-14 22:19:40 +02:00
..
.storybook Storybook: Fix missing favorite and grafana icons (#90376) 2024-07-12 18:49:23 +03:00
src Combobox: Add a warning for combobox when exceeding the recommended amount of options (#96070) 2024-11-14 22:19:40 +02:00
CHANGELOG.md Prettier: Fix all markdown files and add markdown files to CI verify step (#39776) 2021-09-29 14:34:40 +02:00
LICENSE_APACHE2 Re-license Grafana to AGPLv3 (#33184) 2021-04-20 19:03:30 +02:00
package.json Update dependency react-calendar to v5.1.0 (#96449) 2024-11-14 14:30:52 +02:00
project.json Build: Nx improvements (#88341) 2024-10-15 14:25:45 +02:00
README.md Storybook: Rework the intro page (#77305) 2023-10-30 16:53:49 +00:00
rollup.config.ts Fix: Prevent import errors caused by Rollup 4 (#93903) 2024-09-27 12:18:52 +01:00
tsconfig.build.json Update dependency @types/testing-library__jest-dom to v6 (#94607) 2024-10-18 11:59:47 +01:00
tsconfig.json Update dependency @types/testing-library__jest-dom to v6 (#94607) 2024-10-18 11:59:47 +01:00

Grafana UI components library

@grafana/ui is a collection of components used by Grafana

Our goal is to deliver Grafana's common UI elements for plugins developers and contributors.

Browse the Storybook catalog of the components.

See package source for more details.

Installation

yarn add @grafana/ui

npm install @grafana/ui

Development

For development purposes we suggest using yarn link that will create symlink to @grafana/ui lib. To do so navigate to packages/grafana-ui and run yarn link. Then, navigate to your project and run yarn link @grafana/ui to use the linked version of the lib. To unlink follow the same procedure, but use yarn unlink instead.