1e41f4b71Sopenharmony_ci# option 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci> **NOTE** 4e41f4b71Sopenharmony_ci> 5e41f4b71Sopenharmony_ci> This component is supported since API version 4. Updates will be marked with a superscript to indicate their earliest API version. 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ciWhen used as a child component of [\<select>](js-components-basic-select.md), the **\<option>** component is used to display items in the drop-down list. 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci 10e41f4b71Sopenharmony_ciWhen used as a child component of [\<menu>](js-components-basic-menu.md), the **\<option>** component is used to display items in the displayed menu. 11e41f4b71Sopenharmony_ci 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci## Required Permissions 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ciNone 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ci 18e41f4b71Sopenharmony_ci## Child Components 19e41f4b71Sopenharmony_ci 20e41f4b71Sopenharmony_ciNot supported 21e41f4b71Sopenharmony_ci 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ci## Attributes 24e41f4b71Sopenharmony_ci 25e41f4b71Sopenharmony_ciIn addition to the [universal attributes](js-components-common-attributes.md), the following attributes are supported. 26e41f4b71Sopenharmony_ci 27e41f4b71Sopenharmony_ci| Name | Type | Default Value | Mandatory | Description | 28e41f4b71Sopenharmony_ci| -------- | ------- | ---- | ---- | ---------------------------------------- | 29e41f4b71Sopenharmony_ci| selected | boolean | - | No | Whether the option is the default option in the drop-down list. This attribute is available only when the parent component is **\<select>**. | 30e41f4b71Sopenharmony_ci| value | string | - | Yes | Value of the option, which is used as the return value of the **selected** event of the **\<select>** or **\<menu>** parent component.<br>The value to be displayed on the UI must be put between the start and end tags, for example,<br>**\<option value="10">October\</option>**. | 31e41f4b71Sopenharmony_ci| icon | string | - | No | Icon resource path. This icon is displayed before the option text. The supported icon formats are JPG, PNG, and SVG. | 32e41f4b71Sopenharmony_ci 33e41f4b71Sopenharmony_ci 34e41f4b71Sopenharmony_ci## Styles 35e41f4b71Sopenharmony_ci 36e41f4b71Sopenharmony_ciThe following styles are supported. 37e41f4b71Sopenharmony_ci 38e41f4b71Sopenharmony_ci| Name | Type | Default Value | Mandatory | Description | 39e41f4b71Sopenharmony_ci| --------------- | -------------------------- | ---------- | ---- | ---------------------------------------- | 40e41f4b71Sopenharmony_ci| color | <color> | \#e6000000 | No | Font color of the option. | 41e41f4b71Sopenharmony_ci| font-size | <length> | 16px | No | Font size of the option. | 42e41f4b71Sopenharmony_ci| allow-scale | boolean | true | No | Whether the font size changes with the system's font size settings.<br>If the **config-changes** tag of **fontSize** is configured for abilities in the **config.json** file, the setting takes effect without application restart.| 43e41f4b71Sopenharmony_ci| font-weight | number \| string | normal | No | Font weight of the option. For details, see **font-weight** of the [**\<text>**](js-components-basic-text.md#styles) component. | 44e41f4b71Sopenharmony_ci| text-decoration | string | none | No | Text modification of an option. For details, see **text-decoration** of the [**\<text>**](js-components-basic-text.md#styles) component. | 45e41f4b71Sopenharmony_ci| font-family | string | sans-serif | No | Font family, in which fonts are separated by commas (,). Each font is set using a font name or font family name. The first font in the family or the specified [custom font](js-components-common-customizing-font.md) is used for the text.| 46e41f4b71Sopenharmony_ci 47e41f4b71Sopenharmony_ci 48e41f4b71Sopenharmony_ci## Events 49e41f4b71Sopenharmony_ci 50e41f4b71Sopenharmony_ciNot supported 51e41f4b71Sopenharmony_ci 52e41f4b71Sopenharmony_ci 53e41f4b71Sopenharmony_ci## Methods 54e41f4b71Sopenharmony_ci 55e41f4b71Sopenharmony_ciNot supported 56e41f4b71Sopenharmony_ci 57e41f4b71Sopenharmony_ci 58e41f4b71Sopenharmony_ci## Example 59e41f4b71Sopenharmony_ci 60e41f4b71Sopenharmony_ciFor details, see [Example in menu](js-components-basic-menu.md#example). 61