Message
Import
import { Message } from '@resultadosdigitais/tangram-components'
Properties
message
Type | string | shape |
---|---|
Default | '' |
Description
Sets if content of Message will be customizable.
// Can be a string:
<Message title="Message title" message="Message content" />
// Or a node as Message.Text:
<Message
title="Message title"
message={<Message.Text>Message content</Message.Text>}
/>
title
kind
show
🗑️
Concerns | 🗑️ Deprecated: - Use `hide` property instead. |
---|---|
Type | bool |
Default | true |
Description
Sets when the Message
will be shown or not.
hide
onClose
Type | func |
---|---|
Param | event React.SyntheticEvent - The event source of the callback. |
Description
Callback fired when the close button is clicked.
dismissible
Type | bool |
---|---|
Default | true |
Description
Sets if the Message is dismissible making available a button that when clicked closes the Message.