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

[DataGrid] Refactor: create base Autocomplete #16390

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

romgrk
Copy link
Contributor

@romgrk romgrk commented Jan 29, 2025

Part of the design-system agnostic work.

The base Autocomplete API is a subset of the material one, with minor changes (label, placeholder, slotProps.textField).

@romgrk romgrk added the component: data grid This is the name of the generic UI component, not the React module! label Jan 29, 2025
@romgrk romgrk requested a review from a team January 29, 2025 20:28
Comment on lines +57 to +59
const BaseAutocomplete = rootProps.slots.baseAutocomplete as React.JSXElementConstructor<
AutocompleteProps<string, true, false, true>
>;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can't have type parameters directly on GridBaseSlots['baseAutocomplete'], the parameters would need to be on GridBaseSlots and that would make using that type extremely tedious.

@mui-bot
Copy link

mui-bot commented Jan 29, 2025

Deploy preview: https://deploy-preview-16390--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against fd3aa6d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants