Skip to content

Latest commit

 

History

History
83 lines (52 loc) · 1.39 KB

API.md

File metadata and controls

83 lines (52 loc) · 1.39 KB

Modal

Usage

To use Modal, you can import the component from the @dhis2/ui library

import { Modal } from '@dhis2/ui'

Props

Name Type Default Required Description
children node
className string
dataTest string 'dhis2-uicore-modal'
fluid boolean
hide boolean
large custom
position custom 'top'
small custom
onClose function Callback used when the Modal closes

ModalActions

Usage

To use ModalActions, you can import the component from the @dhis2/ui library

import { ModalActions } from '@dhis2/ui'

Props

Name Type Default Required Description
children node
dataTest string 'dhis2-uicore-modalactions'

ModalContent

Usage

To use ModalContent, you can import the component from the @dhis2/ui library

import { ModalContent } from '@dhis2/ui'

Props

Name Type Default Required Description
children node
className string
dataTest string 'dhis2-uicore-modalcontent'

ModalTitle

Usage

To use ModalTitle, you can import the component from the @dhis2/ui library

import { ModalTitle } from '@dhis2/ui'

Props

Name Type Default Required Description
children node
dataTest string 'dhis2-uicore-modaltitle'