Use Uncustomizable Markup...
- To style sections of content where we can’t set CSS classes, so we can’t use the SWAN APIs.
Don't use Uncustomizable Markup...
- To save time and avoid adding CSS classes, even though we could.
Usage
Use Uncustomizable Markup around any output from the rich text editor of a CMS, if that CMS doesn't allow us to add CSS classes to the editor's output. The component will apply SWAN’s look-and-feel to any <ul>, <ol>, <table>, and heading (<h1>-<h6>) tags inside it, even if they don't have the SWAN CSS classes on them.
Examples
Unordered List
Ordered List
Table
Note: you still need to add the style key for the Table component! Uncustomizable Markup doesn't natively contain all the CSS for tables.
React Usage
Use React's dangerouslySetInnerHTML
functionality if your uncustomizable content is a string
:
Pass children if your uncustomizable content is already transformed into a React Node: