Skip to content

Commit a06e4ad

Browse files
committed
select options type
1 parent 70398f8 commit a06e4ad

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/v2/components/forms/select/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ type SelectOption = {
8484
|----------|-----------|------|---------|-------------|
8585
| `label` | `label` | `string` | `Select an option` | Fallback label shown when there is no selected value and no options are available. |
8686
| `theme` | `theme` | `'light' \| 'dark'` | `'light'` | Sets the colour theme. |
87-
| `options` | `options` | `SelectOption[]` | `[]` | Array of selectable options. In practice this should be set as a property from JavaScript rather than as an HTML attribute. |
87+
| `options` | none | `SelectOption[]` | `[]` | Array of selectable options. This is a JavaScript-only property and is not available as an HTML attribute. |
8888
| `layout` | `layout` | `'desktop' \| 'mobile'` | `'desktop'` | Layout mode reserved for integration with other responsive components. |
8989
| `value` | `value` | `string` | `''` | The currently selected option value. If it matches an option, that option is shown in the trigger and moved to the top of the popup when opened. |
9090

src/v2/components/forms/select/Select.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class Select extends LitElement {
4242
static properties = {
4343
label: { type: String, reflect: true },
4444
theme: { type: String, reflect: true },
45-
options: { type: Array },
45+
options: { type: Array, attribute: false },
4646
layout: { type: String, reflect: true },
4747
value: { type: String, reflect: true },
4848
_popupOpen: { state: true },

0 commit comments

Comments
 (0)