Skip to content

Commit

Permalink
Clarifying menuWidth prop lower bound. (#5510)
Browse files Browse the repository at this point in the history
  • Loading branch information
LFDanLu committed Dec 5, 2023
1 parent e090bf8 commit daf929f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/@react-types/autocomplete/src/index.d.ts
Expand Up @@ -70,7 +70,7 @@ export interface SpectrumSearchAutocompleteProps<T> extends SpectrumTextInputBas
* @default true
*/
shouldFlip?: boolean,
/** Width of the menu. By default, matches width of the trigger. */
/** Width of the menu. By default, matches width of the trigger. Note that the minimum width of the dropdown is always equal to the trigger's width. */
menuWidth?: DimensionValue,
onLoadMore?: () => void,
/** An icon to display at the start of the input. */
Expand Down
2 changes: 1 addition & 1 deletion packages/@react-types/combobox/src/index.d.ts
Expand Up @@ -97,7 +97,7 @@ export interface SpectrumComboBoxProps<T> extends SpectrumTextInputBase, Omit<Ar
* @default true
*/
shouldFlip?: boolean,
/** Width of the menu. By default, matches width of the trigger. */
/** Width of the menu. By default, matches width of the combobox. Note that the minimum width of the dropdown is always equal to the combobox's width. */
menuWidth?: DimensionValue,
/**
* Whether the text or key of the selected item is submitted as part of an HTML form.
Expand Down
2 changes: 1 addition & 1 deletion packages/@react-types/select/src/index.d.ts
Expand Up @@ -67,7 +67,7 @@ export interface SpectrumPickerProps<T> extends AriaSelectProps<T>, AsyncLoadabl
* @default true
*/
shouldFlip?: boolean,
/** Width of the menu. By default, matches width of the trigger. */
/** Width of the menu. By default, matches width of the trigger. Note that the minimum width of the dropdown is always equal to the trigger's width. */
menuWidth?: DimensionValue,
/** Whether the element should receive focus on render. */
autoFocus?: boolean
Expand Down

1 comment on commit daf929f

@rspbot
Copy link

@rspbot rspbot commented on daf929f Dec 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.