Skip to content

Commit

Permalink
fix: select component tooltip prop -documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
timwessman committed Feb 6, 2025
1 parent 299763f commit 0384a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/src/docs/components/select/code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,6 @@ The functions are usually called inside the onChange function. <ExternalLink hre
| ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- | ------------- |
| `children` | Options as HTML elements. Can be `<option>` and `<optgroup>` elements. | `ReactElement<HTMLOptGroupElement or HTMLOptionElement>` | - |
| `clearable` | If set to true, clear selections button is displayed | `boolean` | false |
| `children` | Options as HTML elements. Can be `<option>` and `<optgroup>` elements. | `ReactElement<HTMLOptGroupElement or HTMLOptionElement>` | - |
| `disabled` | If set to true, the component is disabled. | `boolean` | false |
| `filter` | Function used for filtering options. If set, an input field is shown above the option list. | `(option, filter)=>boolean` | - |
| `groups` | If options need to be grouped, options should be passed as groups. Cannot be used with `options`. | `[{label:'Group label', options:[<option objects>]}]` | - |
Expand All @@ -477,6 +476,7 @@ The functions are usually called inside the onChange function. <ExternalLink hre
| `required` | If set to true, `*` is shown with the label. Does not check is an option selected. | `boolean` | false |
| `texts` | Overrides for default texts or a function that returns a text for given key. Texts.language defines the current language. | `{[key]:string}` or `(key,contents)=>string` | - |
| `theme` | Custom theme styles. | `SelectCustomTheme` | - |
| `tooltip` | Tooltip as a HDS Tooltip component. | `ReactElement<TooltipProps, typeof Tooltip>` | - |
| `value` | Selected value(s). If `options` or `groups` have selected options, this is discarded. | `string[]` or `Partial<Option[]>` | - |
| `virtualize` | Use with very long lists of options. Changes how options are rendered. | `boolean` | false |
| `visibleOptions` | Number of visible options in the list before scrolling. It affects the height of the list. Use decimals, so a part of the next option is shown. | `number` | 5.5 |
Expand Down

0 comments on commit 0384a83

Please sign in to comment.