Add an icon in the modal header.
Type | Default Value |
---|---|
string | null |
@inherits Overlayable;
<Modal @attributes="@Props" Icon="alert-circle">
</Modal>
Specify the color of the icon.
Type | Default Value |
---|---|
string | neutral |
@inherits Overlayable;
<Modal @attributes="@Props" Icon="flag" IconColor="primary">
</Modal>
ModalBody is used to put elements in the body of the modal.
Type | Default Value |
---|---|
RenderFragment | null |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec et ex nunc. Nulla facilisi. Curabitur massa mauris, malesuada vel ipsum ac, varius suscipit nunc. Mauris ac condimentum justo. Nulla congue sem vel ante volutpat, sed semper quam varius. Nam et lectus sit amet arcu pharetra sodales. Donec mi neque, lacinia ut gravida vel, fringilla in dui. Nunc non velit neque.
@inherits Overlayable;
<Modal @attributes="@Props">
<ModalBody>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec et ex nunc. Nulla facilisi. Curabitur massa mauris, malesuada vel ipsum ac, varius suscipit nunc.
</p>
</ModalBody>
</Modal>
ModalHeader can be used to put more complex elements within the header of the modal.
This will override Title, Icon and IconColor parameters.
Type | Default Value |
---|---|
RenderFragment | null |
@inherits Overlayable;
<Modal @attributes="@Props">
<ModalHeader>
<NVText Tag="h3" Size="lg" Medium>Modal</NVText>
</ModalHeader>
</Modal>