跳到内容

🚀 影响 MUI 2025 年路线图!参与最新的 开发者调查 →

MUI Core /Material UI

随时可用
Material Design
组件

Material UI 是一个开源 React 组件库,它实现了 Google 的 Material Design。它功能全面,可以开箱即用地用于生产环境。

Spotify logoSpotify logo
Amazon logoAmazon logo
Nasa logo
Netflix logo
Unity logoUnity logo
Shutterstock logoShutterstock logo

世界一流的产品团队信任 MUI,为开发者和用户提供无与伦比的体验。


组件库

40 多个 构建模块组件

对 Material Design 的一丝不苟的实现;每个 Material UI 组件都符合形式和功能的最高标准。

按钮

文本字段

表格

警报

工具提示

更多内容
<Button variant="text" startIcon={<ShoppingCartRounded />}>
  Add item
</Button>
<Button variant="contained" startIcon={<ShoppingCartRounded />}>
  Add item
</Button>
<Button variant="outlined" startIcon={<ShoppingCartRounded />}>
  Add item
</Button>

主题化

构建 您的设计系统,就像您想要的那样

从 Material Design 快速开始,或使用高级主题功能轻松定制组件以满足您的需求。

自定义主题

主题化允许您使用品牌的设计令牌,轻松使组件反映其外观和感觉。

Material Design

每个组件都带有 Google 经过尝试和测试的设计系统,随时可以使用。
Contemplative Reptile album cover

沉思的爬行动物

自然之声
<Card
  variant="outlined"
  sx={{  p: 2,
    width: { xs: '100%', sm: 'auto' },
    display: 'flex',
    flexDirection: { xs: 'column', sm: 'row' },
    alignItems: 'center',
    gap: 2,
  }}
>
  <CardMedia
    component="img"
    width="100"
    height="100"
    alt="Contemplative Reptile album cover"
    src="/images/contemplative-reptile.jpg"
    sx={{    width: { xs: '100%', sm: 100 },
    }}
  />
  <Stack direction="column" alignItems="center" spacing={1} useFlexGap>
    <div>
      <Typography color="text.primary" fontWeight="semiBold">
        Contemplative Reptile
      </Typography>
      <Typography
        variant="caption"
        color="text.secondary"
        fontWeight="medium"
        textAlign="center"
        sx={{ width: '100%' }}
      >
        Sounds of Nature
      </Typography>
    </div>
    <Stack direction="row" alignItems="center" spacing={1} useFlexGap>
      <IconButton aria-label="Shuffle" disabled size="small">
        <ShuffleRoundedIcon fontSize="small" />
      </IconButton>
      <IconButton aria-label="Fast rewind" disabled size="small">
        <FastRewindRounded fontSize="small" />
      </IconButton>
      <IconButton
        aria-label={paused ? 'Play music' : 'Pause music'}
        onClick={() => setPaused((val) => !val)}
        sx={{ mx: 1 }}
      >
        {paused ? <PlayArrowRounded /> : <PauseRounded />}
      </IconButton>
      <IconButton aria-label="Fast forward" disabled size="small">
        <FastForwardRounded fontSize="small" />
      </IconButton>
      <IconButton aria-label="Loop music" disabled size="small">
        <LoopRoundedIcon fontSize="small" />
      </IconButton>
    </Stack>
  </Stack>
</Card>

样式

使用 CSS 实用程序 快速添加和调整任何样式

CSS 实用程序使您可以更快地移动,并在样式化任何组件时获得流畅的开发者体验。

利用主题中的令牌

轻松使用主题中定义的任何 CSS 属性的设计令牌。

无需上下文切换

样式和组件用法都在同一个地方,就在您需要它们的地方。

系统属性内联响应式样式

用于编写与主题断点匹配的 CSS 媒体查询的优雅 API。
123 Main St, Phoenix, AZ cover
美国亚利桑那州凤凰城主街 123 号

28 万美元 - 31 万美元

评分:85%
<Card
  variant="outlined"
  sx={{ p: 2, display: 'flex', flexWrap: 'wrap', zIndex: 1 }}
>
  <CardMedia
    component="img"
    width="100"
    height="100"
    alt="123 Main St, Phoenix, AZ cover"
    src="/images/real-estate.png"
    sx={{
      borderRadius: '6px',
      width: { xs: '100%', sm: 100 },
    }}
  />
  <Box sx={{ alignSelf: 'center', ml: 2 }}>
    <Typography variant="body2" color="text.secondary" fontWeight="regular">
      123 Main St, Phoenix, AZ, USA
    </Typography>
    <Typography fontWeight="bold" noWrap gutterBottom>
      $280k - $310k
    </Typography>
    <Chip
      size="small"
      variant="outlined"
      icon={<InfoRounded />}
      label="Confidence score: 85%"
      sx={(theme) => ({
        '.MuiChip-icon': { fontSize: 16, ml: '4px', color: 'success.500' },
        bgcolor: 'success.50',
        borderColor: 'success.100',
        color: 'success.900',
        ...theme.applyDarkStyles({
          bgcolor: 'primaryDark.700',
          color: 'success.200',
          borderColor: 'success.900',
        }),
      })}
    />
  </Box>
</Card>

模板

适合您的正确模板
特定用例

精心策划的精美、功能齐全的模板集合。

仪表板

着陆页

电子商务

更多内容

设计资源

增强您的 设计工作流程

当使用 Material UI 时,请联系 Figma Design Kit 和 Sync 插件,以弥合开发和设计之间的差距。

设计套件

在您首选的设计工具上获取具有状态、变体、颜色、排版和图标的许多 Material UI 组件。

同步插件

使用在 Figma 上完成的令牌和组件自定义快速生成 Material UI 主题文件。
Material UI Button component variations in the Figma Design Kit.Material UI Alert component variations in the Figma Design Kit.Material UI Slider component variations in the Figma Design Kit.

可用于

Figma logo.Sketch logo.

我们会经常更新它们,以保持与最新版本同步。


社区

加入我们的 全球社区

如果没有我们全球贡献者社区,Material UI 将不可能实现。立即加入我们,在您需要时获得帮助,并在您力所能及的时候伸出援手。

  • Material UI 与 MUI Base

    Material UI 实现了 Google 的 Material Design,而 MUI Base 具有许多相同的组件,但没有 Material Design 实现。

  • 它是否支持 Material Design 3?

    Material UI 目前采用 Material Design 2。您可以关注 这个 GitHub issue 以获取未来设计相关的更新。