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.