mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +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;
|