Description Modal V1
Using modal v1 is deprecated. The documentation is only provided for backward compatibility. We recommend everyone to update the implemented Modal components to either Drawer or Dialog.
Mode Drawer
Drawer content wrapper
To make it easier to have another colored area below the title, you can make use of the extra wrapper <Modal.Content>
. Underneath, the Section is used, but with the color black-3
as default. This extra "section" is also customized to work together with the Modal and Drawer component.
<Modal mode="drawer"><Modal.Content>Drawer Content</Modal.Content></Modal>
Drawer bar and header
You can provide custom content to both the drawer bar and header. You can provide it either as a React property (bar_content
and header_content
), or by markup.
You may want to provide the title heading as a property. But if you need to, you can also provide a <H1 />
Eufemia Component inside the header.
<Modal mode="drawer" title="Heading title"><Modal.Bar>Drawer Bar Content</Modal.Bar><Modal.Header>Drawer Header Content</Modal.Header><Modal.Content>Drawer Content</Modal.Content></Modal>
See demo for more details.