mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 04:48:02 +08:00
2e4b9cb098
* site: use CSS logical properties * Update components/anchor/demo/targetOffset.tsx Co-authored-by: afc163 <afc163@gmail.com> Signed-off-by: lijianan <574980606@qq.com> * fix: fix * fix: fix * chore: fix * fix: add more * fix: add more * site: rewrite with CSS logical properties --------- Signed-off-by: lijianan <574980606@qq.com> Co-authored-by: afc163 <afc163@gmail.com>
38 lines
938 B
TypeScript
38 lines
938 B
TypeScript
import React from 'react';
|
|
import { Button, Flex, Input, Segmented, Select } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Flex gap="small" vertical>
|
|
<div>
|
|
<Segmented
|
|
size="large"
|
|
style={{ marginInlineEnd: 6 }}
|
|
options={['Daily', 'Weekly', 'Monthly']}
|
|
/>
|
|
<Button type="primary" size="large">
|
|
Button
|
|
</Button>
|
|
</div>
|
|
<div>
|
|
<Segmented
|
|
size="middle"
|
|
style={{ marginInlineEnd: 6 }}
|
|
options={['Daily', 'Weekly', 'Monthly']}
|
|
/>
|
|
<Input placeholder="default size" style={{ width: 150 }} />
|
|
</div>
|
|
<div>
|
|
<Segmented
|
|
size="small"
|
|
style={{ marginInlineEnd: 6 }}
|
|
options={['Daily', 'Weekly', 'Monthly']}
|
|
/>
|
|
<Select size="small" defaultValue="lucy" style={{ width: 150 }}>
|
|
<Select.Option value="lucy">Lucy</Select.Option>
|
|
</Select>
|
|
</div>
|
|
</Flex>
|
|
);
|
|
|
|
export default App;
|