Rate this page:

SectionMessage

A section message is used to alert users that a particular section of the application requires attention.

Usage

1
import ForgeUI, { SectionMessage } from '@forge/ui';

Props

NameTypeRequiredDescription
childrenArray<Text>YesThe content of the section message.
titlestringThe title of the section message.
appearance"info" | "warning" | "error" | "confirmation" | "change"Shows an icon next to the title and changes the appearance of the section message. If appearance is not specified, the default appearance is "info".

Example

A section message with some text content.

1
2
3
4
<SectionMessage title="Heading" appearance="info">
  <Text>Some text content</Text>
  <Text>More content</Text>
</SectionMessage> 

Preview

Screenshot of what the rendered section message should look like

Rate this page: