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

API Reference@grafana/uiuseStyles

useStyles() function

useStyles() function

Signature

export declare function useStyles<T>(getStyles: (theme: GrafanaTheme) => T): T;

Import

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

Parameters

Parameter Type Description
getStyles (theme: GrafanaTheme) => T

Returns:

T