Modals display content that temporarily blocks interactions within the main view of a site. It can contain critical information, require decisions, or contain entire feature workflows.
Default Modal
<Modal
open
focusTrapOptions={{disabled:true}}
onClose={()=>alert("closing")}
title="Grand Moff Tarkin"
footer={<Buttonprimary>Close</Button>}
portal={false}
>
Don't worry, we'll deal with your rebel friends soon enough!
</Modal>
Size
Modals have four sizes depending on the width of content that needs to be displayed. Medium is the default size.