# AddOptionComponent

> **Info:** This is release candidate documentation for **Stream Chat Angular SDK v8**. For the latest stable version, see the [latest version (v7)](https://getstream.io/chat/docs/sdk/angular/).

The component used to suggest a poll option inside the poll actions section of the poll component.

![Poll Screenshot](https://getstream.io/docs-assets/images/5464c505017d.png)

![Add poll option Screenshot](https://getstream.io/docs-assets/images/410f93277883.png)

[//]: # "Start of generated content"

## Inputs and outputs

### pollId

**pollId**: `undefined` \| `string`

The poll id to display

#### Inherited from

BasePollComponent.pollId

#### Defined in

[lib/polls/base-poll.component.ts:32](https://github.com/GetStream/stream-chat-angular/blob/8ed7ea67ea3deb96c2ae7fcccfd82bd32ad7f184/projects/stream-chat-angular/src/lib/polls/base-poll.component.ts#L32)

---

### messageId

**messageId**: `undefined` \| `string`

The message id the poll is attached to

#### Inherited from

BasePollComponent.messageId

#### Defined in

[lib/polls/base-poll.component.ts:36](https://github.com/GetStream/stream-chat-angular/blob/8ed7ea67ea3deb96c2ae7fcccfd82bd32ad7f184/projects/stream-chat-angular/src/lib/polls/base-poll.component.ts#L36)

---

### closeModal

**closeModal**: () => `void`

The callback to close the modal the component is displayed in

#### Type declaration

(): `void`

##### Returns

`void`

#### Defined in

[lib/polls/poll-actions/add-option/add-option.component.ts:26](https://github.com/GetStream/stream-chat-angular/blob/8ed7ea67ea3deb96c2ae7fcccfd82bd32ad7f184/projects/stream-chat-angular/src/lib/polls/poll-actions/add-option/add-option.component.ts#L26)

[//]: # "End of generated content"

---

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/angular/v8/components/AddOptionComponent/](https://getstream.io/chat/docs/sdk/angular/v8/components/AddOptionComponent/).