API Reference@grafana/uistylesFactory

stylesFactory() function

stylesFactory() function

Signature

export declare function stylesFactory<ResultFn extends (this: any, ...newArgs: any[]) => ReturnType<ResultFn>>(stylesCreator: ResultFn): import("memoize-one").MemoizedFn<ResultFn>;

Import

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

Parameters

Parameter Type Description
stylesCreator ResultFn function accepting dependencies based on which styles are created

Returns:

import("memoize-one").MemoizedFn<ResultFn>