+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "StatsPicker"
keywords = ["grafana","documentation","sdk","@grafana/ui"]
type = "docs"
draft = true
+++

## StatsPicker class

<b>Signature</b>

```typescript
export declare class StatsPicker extends PureComponent<Props> 
```
<b>Import</b>

```typescript
import { StatsPicker } from '@grafana/ui';
```
<b>Properties</b>

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [checkInput](#checkinput-property) |  | <code>() =&gt; void</code> |  |
|  [defaultProps](#defaultprops-property) | <code>static</code> | <code>{</code><br/><code>        width: number;</code><br/><code>        allowMultiple: boolean;</code><br/><code>    }</code> |  |
|  [onSelectionChange](#onselectionchange-property) |  | <code>(item: SelectableValue&lt;string&gt;) =&gt; void</code> |  |

<b>Methods</b>

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [componentDidMount()](#componentdidmount-method) |  |  |
|  [componentDidUpdate(prevProps)](#componentdidupdate-method) |  |  |
|  [render()](#render-method) |  |  |

### checkInput property

<b>Signature</b>

```typescript
checkInput: () => void;
```

### defaultProps property

<b>Signature</b>

```typescript
static defaultProps: {
        width: number;
        allowMultiple: boolean;
    };
```

### onSelectionChange property

<b>Signature</b>

```typescript
onSelectionChange: (item: SelectableValue<string>) => void;
```

### componentDidMount method

<b>Signature</b>

```typescript
componentDidMount(): void;
```
<b>Returns:</b>

`void`

### componentDidUpdate method

<b>Signature</b>

```typescript
componentDidUpdate(prevProps: Props): void;
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  prevProps | <code>Props</code> |  |

<b>Returns:</b>

`void`

### render method

<b>Signature</b>

```typescript
render(): JSX.Element;
```
<b>Returns:</b>

`JSX.Element`

