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.