Skip to main content

MessageCard

Components

MessageCard()

MessageCard(props, context?): ReactNode

A MessageCard component is useful for displaying simple notifications in your app. The user can opt to close it by clicking on the close icon.

Parameters

ParameterType
propsMessageCardProps
context?any

Returns

ReactNode

Example

    <MessageCard title='Title' elevation='1' message='A sample message...' />

Source

libs/design-system-core/src/components/MessageCard/index.tsx:44

Props

MessageCardProps

MessageCardProps: object

Type declaration

MemberType
backgroundColor
borderColorColor
customStylestring
dataTestIdstring
elevationElevation
messagestring
onClose() => void
titlestring
titleIconReact.ReactElement
titleVariantTextProps["variant"]

Source

libs/design-system-core/src/components/MessageCard/index.tsx:13