This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

API Reference@grafana/uiwithTheme

withTheme variable

withTheme variable

Signature

withTheme: <P extends Themeable, S extends {} = {}>(Component: React.ComponentType<P>) => React.FunctionComponent<Subtract<P, Themeable>> & S

Import

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