mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 08:59:15 +08:00
14 lines
259 B
TypeScript
14 lines
259 B
TypeScript
|
import React from 'react';
|
||
|
import { Slider } from 'antd';
|
||
|
|
||
|
const formatter = (value: number) => `${value}%`;
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<>
|
||
|
<Slider tooltip={{ formatter }} />
|
||
|
<Slider tooltip={{ formatter: null }} />
|
||
|
</>
|
||
|
);
|
||
|
|
||
|
export default App;
|