import React from 'react'; import { Button, message } from 'antd'; const App: React.FC = () => { const [messageApi, contextHolder] = message.useMessage(); const success = () => { messageApi.open({ type: 'success', content: 'This is a prompt message with custom className and style', className: 'custom-class', style: { marginTop: '20vh', }, }); }; return ( <> {contextHolder} ); }; export default App;