import React from 'react'; import { uniqueId } from 'lodash'; import { createStyles, css } from 'antd-style'; import { AlertFilled, CloseSquareFilled } from '@ant-design/icons'; import { Button, Form, Input, Tooltip } from 'antd'; const useStyle = createStyles(() => ({ 'custom-feedback-icons': css` .ant-form-item-feedback-icon { pointer-events: all; } `, })); const App: React.FC = () => { const [form] = Form.useForm(); const { styles } = useStyle(); return (
({ error: (
{error}
)} color="red" >
), })} > ({ error: (
{error}
)} color="pink" >
), success: false, }), }} >
); }; export default App;