Go Main page
Go Main page

Web components

cover

components

Message

v.1.0.0 | Saturn

Usage

The name of the tokens object to style the message component is MESSAGE_STYLES.

You cannot change the name of the tokens object.

Message component has one way to modify the styles:

  • Variant: modify the styles of the Message.

The structure of the MESSAGE_STYLES object is:

Variants

Variants can modify the component styles.

12345678910
const MESSAGE_STYLES = {
   [VARIANT]: {
      container?: CommonStyleType;
      headerContainer?: CommonStyleType
      headerContainerLargeMessage?: CommonStyleType
      title?: TypographyTypes;
      contentContainer?: CommonStyleType
      contentContainerLargeMessage?: CommonStyleType
      description?: TypographyTypes;
      infoIcon?: IconTypes;

Example

message theme object example:

12345678910
const MESSAGE_STYLES = {
  [VARIANT]: {
    container: {
      display: 'display',
      flex_direction: 'flex-direction',
      align_items: 'align-items',
      border_color: 'color',
      background_color: 'color',
    },
    title: {