grafana/docs/sources/packages_api/ui/usestyles.md

637 B

+++

-----------------------------------------------------------------------

Do not edit this file. It is automatically generated by API Documenter.

-----------------------------------------------------------------------

title = "useStyles" keywords = ["grafana","documentation","sdk","@grafana/ui"] type = "docs" +++

useStyles variable

useStyles variable

Hook for using memoized styles with access to the theme.

Signature

useStyles: (getStyles: (theme?: GrafanaTheme | undefined) => any) => any

Import

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