Files
react-test/docs/data/joy/components/input/InputSlotProps.tsx

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
678 B
TypeScript
Raw Normal View History

2025-12-12 14:26:25 +09:00
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>
);
}