API Reference@grafana/ui › mockThemeContext

mockThemeContext variable

mockThemeContext variable

Enables theme context mocking

Signature

mockThemeContext: (theme: Partial<GrafanaTheme>) => () => void

Import

import { mockThemeContext } from '@grafana/ui';