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.