ant-design/components/config-provider/demo/warning.tsx
二货爱吃白萝卜 b3428c678f
feat: ConfigProvider support config warning level (#44809)
* test: add test case

* chore: use console.warn instead

* chore: support agg

* chore: fix lint
2023-09-13 11:49:30 +08:00

15 lines
379 B
TypeScript

import React from 'react';
import { Alert, ConfigProvider, Input, Typography } from 'antd';
const App: React.FC = () => (
<>
<Typography.Title level={4}>Open single page to check the console</Typography.Title>
<ConfigProvider warning={{ strict: false }}>
<Alert closeText="deprecated" />
<Input.Group />
</ConfigProvider>
</>
);
export default App;