Files
react-test/docs/data/joy/components/input/InputSlotProps.tsx
how2ice 005cf56baf
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
init project
2025-12-12 14:26:25 +09:00

33 lines
678 B
TypeScript

import * as React from 'react';
import Input from '@mui/joy/Input';
import Stack from '@mui/joy/Stack';
export default function InputSlotProps() {
const inputRef = React.useRef<HTMLInputElement>(null);
return (
<Stack spacing={1.5} sx={{ minWidth: 300 }}>
<Input
type="number"
defaultValue={2.5}
slotProps={{
input: {
ref: inputRef,
min: 1,
max: 5,
step: 0.1,
},
}}
/>
<Input
type="date"
slotProps={{
input: {
min: '2018-06-07',
max: '2018-06-14',
},
}}
/>
</Stack>
);
}