Code
Use the Code component to display snippets of code inline. If you want to
display a block of code, use the
CodeSnippet
component instead.
Changes to Code. The full components changelog also lists package-wide and cross-cutting entries.
3.13.0
Updates
- The background and text color are now purple instead of neutral, with dedicated values for light and dark mode. (APPDEV-19763)
3.11.0
Updates
Typography
- You can now set the
idprop onBlockquote,Code,Emphasis,ExternalLink,Highlight,List,Strikethrough, andStrong.