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
Parameter | Type |
---|---|
props | MessageCardProps |
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
Member | Type |
---|---|
background | Color |
borderColor | Color |
customStyle | string |
dataTestId | string |
elevation | Elevation |
message | string |
onClose | () => void |
title | string |
titleIcon | React.ReactElement |
titleVariant | TextProps ["variant" ] |
Source
libs/design-system-core/src/components/MessageCard/index.tsx:13