Modal
Import
import { Modal } from '@resultadosdigitais/tangram-components'
Properties
aria-describedby
Type | string |
---|
Description
Gives the modal an accessible name by referring to the element that provides the modal title.
aria-labelledby
Type | string |
---|
Description
Gives the modal an accessible description by referring to the modal content that describes the primary message or purpose.
children
cardComponent
Type | elementType |
---|---|
Default | styled(Card)` &, & > ${Form.Style} { max-height: calc(100vh - ${MODAL_MARGIN}); padding: 0; border: none; display: flex; flex-flow: column; } ` |
Description
Sets the custom Card component.
disableEscapeKeyDown
disableOutsideClick
hideOverlay
onClose
Type | func |
---|---|
Param | event React.SyntheticEvent - The event source of the callback. |
Description
Callback fired when the Modal is closed.
onEscapeKeyDown
Type | func |
---|---|
Param | event React.SyntheticEvent - The event source of the callback. |
Description
Callback fired when the ESC
key is pressed.
onOutsideClick
Type | func |
---|---|
Param | event React.SyntheticEvent - The event source of the callback. |
Description
Callback fired when a click outside is triggered.
open
unmounted
Type | bool |
---|---|
Default | false |
Description
Doesn't keep the Modal
mounted (present in the DOM) when it's closed.
<ModalActions />
Import
import { ModalActions } from '@resultadosdigitais/tangram-components'
Properties
children
📍
Concerns | 📍 Required |
---|---|
Type | node |
Description
Sets the children. Should be one of <Button />
OR one <ButtonGroup />
.
<ModalBanner />
Import
import { ModalBanner } from '@resultadosdigitais/tangram-components'
Properties
children
📍
Concerns | 📍 Required |
---|---|
Type | node |
Description
Sets the children. Should be an image, either svg
or img
tag.
caption
📍
<ModalHeader />
Import
import { ModalHeader } from '@resultadosdigitais/tangram-components'
Properties
children
<ModalSteps />
Import
import { ModalSteps } from '@resultadosdigitais/tangram-components'
Properties
startsAt
render
📍
Concerns | 📍 Required |
---|---|
Type | func |
Param | props Object - The props that will be passed to the inner component. |
Description
Function responsible for rendering the multiple Modal
steps.