mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-01 06:49:32 +08:00
fab90b09f4
* docs: put an example loading component
* fix: site issue
* fix: site issue
* feat: add loading
* feat: alert
* docs: rm ReactDOM.render in md
* docs: use style tag
* chore: update snapshot
* Revert "docs: use style tag"
This reverts commit 1f75a99f8c
.
* docs: update demo
* chore: update demo
Co-authored-by: PeachScript <scdzwyxst@gmail.com>
18 lines
493 B
TypeScript
18 lines
493 B
TypeScript
import React from 'react';
|
|
import { CheckOutlined, CloseOutlined } from '@ant-design/icons';
|
|
import { Switch, Space } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Space direction="vertical">
|
|
<Switch checkedChildren="开启" unCheckedChildren="关闭" defaultChecked />
|
|
<Switch checkedChildren="1" unCheckedChildren="0" />
|
|
<Switch
|
|
checkedChildren={<CheckOutlined />}
|
|
unCheckedChildren={<CloseOutlined />}
|
|
defaultChecked
|
|
/>
|
|
</Space>
|
|
);
|
|
|
|
export default App;
|