> For the complete documentation index, see [llms.txt](https://devkiki7000.gitbook.io/discord-components/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devkiki7000.gitbook.io/discord-components/api-reference/component/select.md).

# Select

The select component.\
**Extends:** [`discord-components.Component`](/discord-components/api-reference/componentmessage.md)

{% tabs %}
{% tab title="Parameters" %}

| placeholder                                                                          |
| ------------------------------------------------------------------------------------ |
| <p>The select's placeholder</p><p></p><p><strong>Type:</strong> <code>str</code></p> |

| id                                                                                  |
| ----------------------------------------------------------------------------------- |
| <p>The select's custom id.</p><p></p><p><strong>Type:</strong> <code>str</code></p> |

| options                                                                                                                                                                                  |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>The select's options.</p><p></p><p><strong>Type:</strong> List\[<a href="/discord-components/api-reference/component/option.md"><code>discord-components.SelectOption</code></a>]</p> |

| max\_values                                                                           |
| ------------------------------------------------------------------------------------- |
| <p>The select's max\_values.</p><p></p><p><strong>Type:</strong> <code>int</code></p> |

| min\_values                                                                           |
| ------------------------------------------------------------------------------------- |
| <p>The select's min\_values.</p><p></p><p><strong>Type:</strong> <code>int</code></p> |

| disabled                                                                                                                                             |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Indicates if the select is disabled.</p><p></p><p><strong>Type:</strong> <code>bool</code></p><p><strong>Default:</strong> <code>False</code></p> |
| {% endtab %}                                                                                                                                         |

{% tab title="Attributes" %}

| placeholder                                                                          |
| ------------------------------------------------------------------------------------ |
| <p>The select's placeholder</p><p></p><p><strong>Type:</strong> <code>str</code></p> |

| id                                                                                                                               |
| -------------------------------------------------------------------------------------------------------------------------------- |
| <p>The select's custom id.</p><p>If not provided, it is a random value.</p><p></p><p><strong>Type:</strong> <code>str</code></p> |

| options                                                                                                                                                                                  |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>The select's options.</p><p></p><p><strong>Type:</strong> List\[<a href="/discord-components/api-reference/component/option.md"><code>discord-components.SelectOption</code></a>]</p> |

| max\_values                                                                           |
| ------------------------------------------------------------------------------------- |
| <p>The select's max\_values.</p><p></p><p><strong>Type:</strong> <code>int</code></p> |

| min\_values                                                                           |
| ------------------------------------------------------------------------------------- |
| <p>The select's min\_values.</p><p></p><p><strong>Type:</strong> <code>int</code></p> |

| disabled                                                                                          |
| ------------------------------------------------------------------------------------------------- |
| <p>Indicates if the select is disabled.</p><p></p><p><strong>Type:</strong> <code>bool</code></p> |
| {% endtab %}                                                                                      |

{% tab title="Methods" %}

| to\_dict                                                                                                                               |
| -------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Gets the component information required for API requests in dict form.</p><p></p><p><strong>Returns: <code>dict</code></strong></p> |

| from\_dict                                                                                                                                                                                                                                                                                                                                                        |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Creates component instance from json.<br><br>This is a static method.</p><p></p><p><strong>Parameters:</strong></p><ul><li><strong>data</strong> (<code>dict</code>) - The json to construct select from.</li></ul><p><strong>Returns:</strong> <a href="/discord-components/api-reference/component/select.md"><code>discord-components.Select</code></a></p> |
| {% endtab %}                                                                                                                                                                                                                                                                                                                                                      |
| {% endtabs %}                                                                                                                                                                                                                                                                                                                                                     |
