Back to Kibana

@kbn/core-chrome-feature-flags

src/core/packages/chrome/feature-flags/README.md

9.5.0791 B
Original Source

@kbn/core-chrome-feature-flags

Feature flag utilities for Kibana's Chrome system.

Chrome Next

NEXT_CHROME_FEATURE_FLAG_KEY (core.chrome.next) controls the Chrome Next rollout. The flag defaults to false, so the foundation code is inert unless the flag is enabled.

Use isNextChrome(featureFlags) when core Chrome code needs to branch on the rollout state:

ts
import { isNextChrome } from '@kbn/core-chrome-feature-flags';

const nextChromeEnabled = isNextChrome(featureFlags);

NEXT_CHROME_SESSION_STORAGE_KEY (dev.core.chrome.next) is used by the development toolbar toggle. The session override is only read after core.chrome.next is enabled, so it can disable Chrome Next locally during development but cannot enable Chrome Next when the rollout flag is off.