mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-22 22:48:29 +08:00
29 lines
591 B
TypeScript
29 lines
591 B
TypeScript
import React from 'react';
|
|
import { SmileOutlined } from '@ant-design/icons';
|
|
import { Alert, ConfigProvider } from 'antd';
|
|
|
|
const icon = <SmileOutlined />;
|
|
|
|
const App: React.FC = () => (
|
|
<ConfigProvider
|
|
theme={{
|
|
components: {
|
|
Alert: {
|
|
withDescriptionIconSize: 32,
|
|
withDescriptionPadding: 16,
|
|
},
|
|
},
|
|
}}
|
|
>
|
|
<Alert
|
|
icon={icon}
|
|
message="Success Tips"
|
|
description="Detailed description and advice about successful copywriting."
|
|
type="success"
|
|
showIcon
|
|
/>
|
|
</ConfigProvider>
|
|
);
|
|
|
|
export default App;
|