--- order: 5 title: zh-CN: 自定义尺寸 en-US: Customize Size --- ## zh-CN 自定义间距大小。 ## en-US Custom spacing size. ```tsx import { Button, Slider, Space } from 'antd'; import React, { useState } from 'react'; const App: React.FC = () => { const [size, setSize] = useState(8); return ( <> setSize(value)} />

); }; export default App; ```