kibana/packages/kbn-unsaved-changes-badge
Luke Elmers b6287708f6
Adds AGPL 3.0 license (#192025)
Updates files outside of x-pack to be triple-licensed under Elastic
License 2.0, AGPL 3.0, or SSPL 1.0.
2024-09-06 19:02:41 -06:00
..
src Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
index.ts Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
jest.config.js Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kibana.jsonc
package.json Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
README.md
tsconfig.json
types.ts Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00

@kbn/unsaved-changes-badge

A yellow "Unsaved changes" badge which can be found for example on Discover page. It supports callbacks to save or revert the changes.

To integrate it into TopNav component, consider using getTopNavUnsavedChangesBadge(...) util and pass the result to badges prop of the top nav.

There is also a standalone component <UnsavedChangesBadge .../>.