Skip to content

How do you add a new line within a Disclosure panel? #1207

Answered by normanwongcl
normanwongcl asked this question in Help
Discussion options

You must be logged in to vote

Oh never mind, I solve the issue.

I have forgotten that I can use dangerouslySetInnerHTML to inject HTML code.

<Disclosure.Panel className="text-gray-600 text-sm mt-4 clear-both">
       <p dangerouslySetInnerHTML={{ __html: formattedDescription }}></p>
</Disclosure.Panel>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by normanwongcl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant