简体   繁体   English

如何在反应中使用材料 ui 或 mui 创建可重用的下拉组件?

[英]How to create reusable dropdown component using material ui or mui in react?

Any solution to create reusable dropdown component using material ui or mui in react?在反应中使用材料 ui 或 mui 创建可重用下拉组件的任何解决方案?

I think you can use Material UI - Autocomplete component to create the reusable dropdown component.我认为您可以使用 Material UI - Autocomplete 组件来创建可重用的下拉组件。

在此处输入图像描述

Here is the documentation and code example inside:这是里面的文档和代码示例:

https://mui.com/components/autocomplete/#main-content https://mui.com/components/autocomplete/#main-content

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Material UI 和 react-hook-form 创建可重用的文本字段组件 - Creating reusable text field component using Material UI and react-hook-form Material UI - 错误:使用 create-react-library + MUI 的挂钩调用无效 - Material UI - Error: Invalid hook call using create-react-library + MUI 如何为 Material-UI Snackbar 制作可重用组件? - How can I make a reusable component for Material-UI Snackbar? 如何使用 Material UI 在 React JS 中实现下拉菜单? - How to implement dropdown menu in React JS using Material UI? 如何使用 React 的 Material UI 创建响应式侧边栏组件? - How do I create a responsive sidebar component using React's Material UI? 如何使用 MUI 和 React 创建一个将功能组件作为项目返回的下拉列表? - How can I create a dropdown that returns a functional component as item with MUI and React? 如何在 React 中创建动态可重用的功能组件? - How to create dynamic reusable functional component in React? 如何使用 React & TypeScript 创建可重用的输入组件? - How to create a reusable Input component with React & TypeScript? 具有 Reactjs 和材质 UI 的可重用表格组件 - Reusable table component with Reactjs and material UI 使用 @material-ui/Dialog 创建可重用组件 - Creating reusable component with @material-ui/Dialog
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM