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.