ant-design/components/alert/demo/component-token.tsx
thinkasany fc97a4dd91
feat: ConfigProvider support classnames and styles for Alert (#52669)
* feat: ConfigProvider support classnames and styles for Alert

* empty commit

* update name and snap

* update
2025-02-07 17:39:31 +08:00

29 lines
589 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}
title="Success Tips"
description="Detailed description and advice about successful copywriting."
type="success"
showIcon
/>
</ConfigProvider>
);
export default App;