Render CommonMark documents, plus GFM tables, task lists, strikethrough, and footnotes, in the shared reading style. Code fences reuse CodeBlock's highlighting, copy action, and horizontal scrolling.
Don't render MDX or executable HTML. Pass CommonMark or GFM source instead. Don't use task lists as form inputs, since they're read-only. Use Checkbox instead. The calling screen decides remote document fetching, permissions, link destinations, and image visibility.
Size: SizeProvider size="small" resizes the whole composition, including portals. The default size is Default. Size guidance and comparisons
Tab reaches links and copy buttons, and Enter activates them natively. Headings start at h2 by default. Each instance's internal links point to its own IDs. HTML is excluded, and the default URL policy blocks unsafe URLs. Long tables and code scroll independently instead of overflowing the document.
Give each control a name that describes its purpose. Connect error messages to their controls, and signal state with more than color. Automated checks don't replace manual keyboard and assistive technology testing.
Example code
Shared components take their styles from design tokens. Each example sets its own composition and accessibility attributes. The calling screen defines callbacks, refs, and product data.