/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/data/material/customization/theme-components/DefaultProps.js
22 строки
549 B
Brijesh Bittu
[code-infra] Remove React import requirement for jsx (#47146)
29 окт 2025, 20:55
Не верифицирован
29 окт 2025, 20:55
6c9e82f
Код
Авторство
О чём код?
import { createTheme, ThemeProvider } from '@mui/material/styles'; import Button from '@mui/material/Button'; const theme = createTheme({ components: { // Name of the component ⚛️ MuiButtonBase: { defaultProps: { // The default props to change disableRipple: true, // No more ripple, on the whole application 💣! }, }, }, }); export default function DefaultProps() { return ( <ThemeProvider theme={theme}> <Button>This button has disabled ripples.</Button> </ThemeProvider> ); }