Menu

Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Enterprise Open source

StyleProps interface

Signature

typescript
export interface StyleProps 

Import

typescript
import { StyleProps } from '@grafana/ui';

Properties

PropertyTypeDescription
hasIconboolean
hasTextboolean
sizeComponentSize
themeGrafanaTheme
variantButtonVariant

hasIcon property

Signature

typescript
hasIcon: boolean;

hasText property

Signature

typescript
hasText: boolean;

size property

Signature

typescript
size: ComponentSize;

theme property

Signature

typescript
theme: GrafanaTheme;

variant property

Signature

typescript
variant: ButtonVariant;