ant-design/components/slider/demo/editable.tsx
二货爱吃白萝卜 21194da96a
feat: Slider support editable (#49923)
* feat: Slider support editable

* test: update snapshot

* test: update snapshot

* docs: update docs

* chore: fix lint

* test: update snapshot

* test: coverage
2024-07-18 19:19:02 +08:00

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;