Files
grafana/docs/sources/packages_api/ui/stylesfactory.md
T
Marcus Andersson a2d741f60f Docs: run the api-extractor on master to update docs (#23726)
* regenerated packages docs.

* fixed spelling issues.

* fixed spelling issues.
2020-04-21 10:41:50 +02:00

37 lines
958 B
Markdown

+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "stylesFactory"
keywords = ["grafana","documentation","sdk","@grafana/ui"]
type = "docs"
draft = true
+++
## stylesFactory() function
### stylesFactory() function
Creates memoized version of styles creator
<b>Signature</b>
```typescript
export declare function stylesFactory<ResultFn extends (this: any, ...newArgs: any[]) => ReturnType<ResultFn>>(stylesCreator: ResultFn): ResultFn;
```
<b>Import</b>
```typescript
import { stylesFactory } from '@grafana/ui';
```
<b>Parameters</b>
| Parameter | Type | Description |
| --- | --- | --- |
| stylesCreator | <code>ResultFn</code> | function accepting dependencies based on which styles are created |
<b>Returns:</b>
`ResultFn`