/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/data/material/components/transitions/SimpleGrow.tsx.preview
15 строк
384 B
Siriwat K
[docs] Migrate content to the new location (#30757)
04 фев 2022, 07:13
Не верифицирован
04 фев 2022, 07:13
27f1c28
Код
Авторство
О чём код?
<FormControlLabel control={<Switch checked={checked} onChange={handleChange} />} label="Show" /> <Box sx={{ display: 'flex' }}> <Grow in={checked}>{icon}</Grow> {/* Conditionally applies the timeout prop to change the entry speed. */} <Grow in={checked} style={{ transformOrigin: '0 0 0' }} {...(checked ? { timeout: 1000 } : {})} > {icon} </Grow> </Box>