Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
31 lines
710 B
TypeScript
31 lines
710 B
TypeScript
import Box from '@mui/joy/Box';
|
|
import Slider from '@mui/joy/Slider';
|
|
|
|
function valueText(value: number) {
|
|
return `${value}°C`;
|
|
}
|
|
|
|
export default function SliderSizes() {
|
|
return (
|
|
<Box sx={{ width: 300, display: 'flex', gap: 2, flexWrap: 'wrap' }}>
|
|
<Slider
|
|
size="sm"
|
|
aria-labelledby="color-primary-slider"
|
|
getAriaValueText={valueText}
|
|
defaultValue={37}
|
|
/>
|
|
<Slider
|
|
aria-labelledby="color-neutral-slider"
|
|
getAriaValueText={valueText}
|
|
defaultValue={37}
|
|
/>
|
|
<Slider
|
|
size="lg"
|
|
aria-labelledby="color-danger-slider"
|
|
getAriaValueText={valueText}
|
|
defaultValue={37}
|
|
/>
|
|
</Box>
|
|
);
|
|
}
|