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

## TagsInput class

<b>Signature</b>

```typescript
export declare class TagsInput extends PureComponent<Props, State> 
```
<b>Import</b>

```typescript
import { TagsInput } from '@grafana/ui';
```
<b>Constructors</b>

|  Constructor | Modifiers | Description |
|  --- | --- | --- |
|  [constructor(props)](#constructor-props) |  | Constructs a new instance of the <code>TagsInput</code> class |

<b>Properties</b>

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [onAdd](#onadd-property) |  | <code>(event: React.MouseEvent) =&gt; void</code> |  |
|  [onChange](#onchange-property) |  | <code>() =&gt; void</code> |  |
|  [onKeyboardAdd](#onkeyboardadd-property) |  | <code>(event: KeyboardEvent) =&gt; void</code> |  |
|  [onNameChange](#onnamechange-property) |  | <code>(event: ChangeEvent&lt;HTMLInputElement&gt;) =&gt; void</code> |  |
|  [onRemove](#onremove-property) |  | <code>(tagToRemove: string) =&gt; void</code> |  |
|  [setNewTags](#setnewtags-property) |  | <code>() =&gt; void</code> |  |

<b>Methods</b>

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [render()](#render-method) |  |  |

### constructor(props)

Constructs a new instance of the `TagsInput` class

<b>Signature</b>

```typescript
constructor(props: Props);
```
<b>Parameters</b>

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

### onAdd property

<b>Signature</b>

```typescript
onAdd: (event: React.MouseEvent) => void;
```

### onChange property

<b>Signature</b>

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

### onKeyboardAdd property

<b>Signature</b>

```typescript
onKeyboardAdd: (event: KeyboardEvent) => void;
```

### onNameChange property

<b>Signature</b>

```typescript
onNameChange: (event: ChangeEvent<HTMLInputElement>) => void;
```

### onRemove property

<b>Signature</b>

```typescript
onRemove: (tagToRemove: string) => void;
```

### setNewTags property

<b>Signature</b>

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

### render method

<b>Signature</b>

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

`JSX.Element`

