跳到內容

🚀 影響 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 快速開始,或使用進階主題設定功能,輕鬆地根據您的需求調整組件。

自訂主題

主題設定讓您可以使用品牌的設計 Tokens,輕鬆使組件反映其外觀和風格。

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 工具讓您在設定任何組件樣式時,都能更快地行動並獲得流暢的開發者體驗。

善用您主題的 Tokens

針對任何 CSS 屬性,輕鬆使用在主題中定義的設計 Tokens。

無需切換情境

樣式設定和組件用法都在同一個地方,就在您需要它們的地方。

系統屬性內的響應式樣式

用於編寫 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>

範本

適合您的範本
特定使用情境

精心策劃的精美、功能完整的範本集合。

儀表板

到達頁面

電子商務

還有更多

設計資源

增強您的 設計工作流程

取得 Figma 設計套件和 Sync 外掛程式,以在使用 Material UI 時彌合開發和設計之間的差距。

設計套件

在您偏好的設計工具上取得包含狀態、變化、色彩、排版和圖示的許多 Material UI 組件。

Sync 外掛程式

使用在 Figma 上完成的 Tokens 和組件自訂快速產生 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 以取得未來與設計相關的更新。