在最新的mui中,LoadingButton丢失了吗? [英] In the latest mui LoadingButton is missing?
问题描述
根据重要的用户界面文档, https://next.material-ui.com/components/buttons/
As per the material UI documentation, https://next.material-ui.com/components/buttons/
您可以从'@ material-ui/lab/LoadingButton'导入LoadingButton;
但是,在mui/lab中的任何地方都看不到该文件夹,并且导入会引发错误.
you can
import LoadingButton from '@material-ui/lab/LoadingButton';
However, I don't see this folder anywhere in mui/lab and the import throws an error.
我已经运行了 yarn add @ material-ui/lab
.
我也已经有"@ material-ui/core"
.
我是否需要为下一个mui"安装某些软件,因为我看到文档的URL也有所不同:https://next.material-ui.com/
Do I need to install something for 'next mui' as I see the documentation url is also different: https://next.material-ui.com/
虽然我一直使用的大多数组件都在这里: https://material-ui.com/
While most of components I have been using are here: https://material-ui.com/
推荐答案
根据入门/安装,您需要 @next
来安装即将发布的core版本.
According to getting-started/installation you need @next
to install upcoming version of core.
纱线添加@ material-ui/core @ next
这也适用于 @ material-ui/lab
这篇关于在最新的mui中,LoadingButton丢失了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!