mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-24 07:28:28 +08:00
8c3090938f
* docs: update docs * docs: update demo
17 lines
308 B
TypeScript
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;
|