ant-design/components/spin/demo/inside.md
2022-05-21 22:14:15 +08:00

551 B

order title
2
zh-CN en-US
容器 Inside a container

zh-CN

放入一个容器中。

en-US

Spin in a container.

import { Spin } from 'antd';
import React from 'react';

const App: React.FC = () => (
  <div className="example">
    <Spin />
  </div>
);

export default App;
.example {
  margin: 20px 0;
  margin-bottom: 20px;
  padding: 30px 50px;
  text-align: center;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}