Skip to main content

RichContent

RichContent is a component that wraps around some HTML or other components.

Usage​

Use this component if you want to provide some default styling for HTML content, based on design system values (e.g. for content coming from a WYSIWYG).

Button styling​

We’ve added some extra helper classes that can be used to style buttons. You can put the following classes on <a> tags in your HTML content to make them look like buttons.

  • .button - Adds a button style to a link/button.
  • .button.button--sm - Adds a smaller variant of the button.
  • .button.button--primary - Adds a primary button style to a link/button.
  • .button.button--secondary - Adds a secondary button style to a link/button.
  • .button.button--tertiary - Adds a tertiary button style to a link/button.