Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarifying menuWidth prop lower bound #5510

Merged
merged 3 commits into from Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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