Is there a way to have a multi-line alert description that also includes HTML (ie <code> tags)
It seems that the description is escaped, so any markup or \n is rendered literally, eg https://codepen.io/anon/pen/awzNzP?editors=001.
Is there a way to have a multi-line alert description that also includes HTML (ie <code> tags)
It seems that the description is escaped, so any markup or \n is rendered literally, eg https://codepen.io/anon/pen/awzNzP?editors=001.
For antd version 4.x
<Alert
message="Error message"
description={
<code>
console.log("This is code in alert")
<br />
console.log("This is code in alert")
<br />
console.log("This is code in alert")
</code>
}
type="error"
showIcon
/>
Screenshot: