Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3761,6 +3761,9 @@ When returning \`null\`, the default rendering will be applied for that item.",
},
"name": "renderOption",
"optional": true,
"systemTags": [
"core",
],
"type": "AutosuggestProps.ItemRenderer",
},
{
Expand Down Expand Up @@ -19425,6 +19428,9 @@ For more information, see the
},
"name": "renderOption",
"optional": true,
"systemTags": [
"core",
],
"type": "MultiselectProps.MultiselectOptionItemRenderer",
},
{
Expand Down Expand Up @@ -25670,6 +25676,9 @@ For more information, see the
},
"name": "renderOption",
"optional": true,
"systemTags": [
"core",
],
"type": "SelectProps.SelectOptionItemRenderer",
},
{
Expand Down
2 changes: 2 additions & 0 deletions src/autosuggest/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
* The component still manages focus, keyboard interactions, and selection state, but it no longer applies its default item layout or typography.
*
* When returning `null`, the default rendering will be applied for that item.
*
* @awsuiSystem core
*/
renderOption?: AutosuggestProps.ItemRenderer;

Expand Down Expand Up @@ -273,7 +275,7 @@
}
}

// TODO: use DropdownOption type same as in select and multiselect

Check warning on line 278 in src/autosuggest/interfaces.ts

View workflow job for this annotation

GitHub Actions / build / build

Unexpected 'todo' comment: 'TODO: use DropdownOption type same as in...'

Check warning on line 278 in src/autosuggest/interfaces.ts

View workflow job for this annotation

GitHub Actions / build (React 18) / build

Unexpected 'todo' comment: 'TODO: use DropdownOption type same as in...'

Check warning on line 278 in src/autosuggest/interfaces.ts

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 3/4)

Unexpected 'todo' comment: 'TODO: use DropdownOption type same as in...'
export type AutosuggestItem = (AutosuggestProps.Option | AutosuggestProps.OptionGroup) & {
type?: 'parent' | 'child' | 'use-entered';
option: OptionDefinition | OptionGroup;
Expand Down
2 changes: 2 additions & 0 deletions src/multiselect/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ export interface MultiselectProps extends BaseSelectProps {
enableSelectAll?: boolean;
/**
* Specifies a render function to render custom options in the dropdown menu.
*
* @awsuiSystem core
*/
renderOption?: MultiselectProps.MultiselectOptionItemRenderer;
}
Expand Down
2 changes: 2 additions & 0 deletions src/select/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ export interface SelectProps extends BaseSelectProps {
autoFocus?: boolean;
/**
* Specifies a render function to render custom options in the dropdown menu or trigger.
*
* @awsuiSystem core
*/
renderOption?: SelectProps.SelectOptionItemRenderer;
}
Expand Down
Loading