You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot customize the styling of AutocompleteItem (e.g., changing the background color on hover) in Autocomplete because AutocompleteItemProps does not include a className property. As you know, overriding CSS is not the best option.
Suggestion:
Please change ItemProps to ListBoxItemProps because ListBoxItemProps has "className" property.
export type AutocompleteItemProps<T = HTMLElement> = ItemProps & {
/**
AutocompleteItem body content
*/
children?: ReactNode;
};
Change to:
import type {ListBoxItemProps} from 'react-aria-components';
export type AutocompleteItemProps<T = HTMLElement> = ListBoxItemProps & {
/**
AutocompleteItem body content
*/
children?: ReactNode;
};
The text was updated successfully, but these errors were encountered:
I cannot customize the styling of AutocompleteItem (e.g., changing the background color on hover) in Autocomplete because AutocompleteItemProps does not include a className property. As you know, overriding CSS is not the best option.
Suggestion:
Please change ItemProps to ListBoxItemProps because ListBoxItemProps has "className" property.
export type AutocompleteItemProps<T = HTMLElement> = ItemProps & {
/**
*/
children?: ReactNode;
};
Change to:
import type {ListBoxItemProps} from 'react-aria-components';
export type AutocompleteItemProps<T = HTMLElement> = ListBoxItemProps & {
/**
*/
children?: ReactNode;
};
The text was updated successfully, but these errors were encountered: