mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-13 15:49:10 +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>
9 lines
235 B
TypeScript
9 lines
235 B
TypeScript
import { Alert, AlertProps } from 'antd';
|
|
import React, { FC } from 'react';
|
|
|
|
const MdAlert: FC<AlertProps> = ({ style, ...props }) => {
|
|
return <Alert {...props} style={{ margin: '24px 0', ...style }} />;
|
|
};
|
|
|
|
export default MdAlert;
|