ant-design/components/slider/demo/editable.tsx
二货爱吃白萝卜 8c3090938f
feat: Slider range.editable support minCount & maxCount (#49987)
* docs: update docs

* docs: update demo
2024-07-20 17:51:26 +08:00

17 lines
308 B
TypeScript

import React from 'react';
import { Slider } from 'antd';
const App: React.FC = () => {
const [value, setValue] = React.useState([20, 80]);
return (
<Slider
range={{ editable: true, minCount: 1, maxCount: 5 }}
value={value}
onChange={setValue}
/>
);
};
export default App;