MUI
website
github
https://mui.com/blog/material-ui-is-now-mui/
もともとmaterial-uiという名前だったが、2021/9にMUIに変わった
#WIP
3つのproject
MUI Core
すぐに使用できる基本Component
MUI X
より複雑なユースケース向けの高度なComponent
有料もある
Templates
コミュニティによって開発された、MUI を使用したテンプレート
5つのpackage
https://zenn.dev/a_da_chi/articles/8fe30435792108#パッケージ構成からみるmuiの概要
@mui/material
@mui/base
@mui/system
styled engines
@mui/styled-engine
@mui/styled-engine-sc
以下2つの違いって何 #??
Components
Component API
ドキュメント読んでもどこに差異が書いてるのかわからんmrsekut.icon
MUIのTypography
https://mui.com/material-ui/api/typography/
https://mui.com/material-ui/react-typography/
MUIでFormを作る
https://mui.com/api/text-field
FormControlとかって必須なん #??
この、継承する書き方毎回忘れるmrsekut.icon
code:ts
import * as React from 'react';
import Slider, { SliderProps } from '@mui/material/Slider';
import { alpha, styled } from '@mui/material/styles';
const SuccessSlider = styled(Slider)<SliderProps>(({ theme }) => ({
width: 300,
color: theme.palette.success.main,
'& .MuiSlider-thumb': {
'&:hover, &.Mui-focusVisible': {
boxShadow: 0px 0px 0px 8px ${alpha(theme.palette.success.main, 0.16)},
},
'&.Mui-active': {
boxShadow: 0px 0px 0px 14px ${alpha(theme.palette.success.main, 0.16)},
},
},
}));
MUIのSelectbox
MUIのPopper