import React, { useState } from 'react'; import { Checkbox, InputNumber, Space } from 'antd'; const App: React.FC = () => { const [keyboard, setKeyboard] = useState(true); return ( { setKeyboard(!keyboard); }} checked={keyboard} > Toggle keyboard ); }; export default App;