import React from 'react'; import type { GetProp } from 'antd'; import { Input, Space, Typography } from 'antd'; const { Title } = Typography; const App: React.FC = () => { const onChange: GetProp = (text) => { console.log('onChange:', text); }; const sharedProps = { onChange, }; return ( With formatter (Upcase) str.toUpperCase()} {...sharedProps} /> With Disabled With Length (8) With variant ); }; export default App;