/
githubmirror
/
material-ui
Обзор
Документация
Войти
/
githubmirror
/
material-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/data/material/components/rating/CustomizedRating.tsx.preview
11 строк
435 B
Siriwat K
[docs] Migrate content to the new location (#30757)
04 фев 2022, 07:13
Не верифицирован
04 фев 2022, 07:13
27f1c28
Код
Авторство
О чём код?
<Typography component="legend">Custom icon and color</Typography> <StyledRating name="customized-color" defaultValue={2} getLabelText={(value: number) => `${value} Heart${value !== 1 ? 's' : ''}`} precision={0.5} icon={<FavoriteIcon fontSize="inherit" />} emptyIcon={<FavoriteBorderIcon fontSize="inherit" />} /> <Typography component="legend">10 stars</Typography> <Rating name="customized-10" defaultValue={2} max={10} />