mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-19 11:58:41 +08:00
11 lines
250 B
TypeScript
11 lines
250 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 }} value={value} onChange={setValue} />;
|
||
|
};
|
||
|
|
||
|
export default App;
|