mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-19 11:58:41 +08:00
21194da96a
* feat: Slider support editable * test: update snapshot * test: update snapshot * docs: update docs * chore: fix lint * test: update snapshot * test: coverage
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;
|