Modal with Form
Example of a modal containing form elements:
Danger Modal
For destructive actions that require confirmation:
This is a basic modal with some content. It can contain text, images, or other elements.
The modal requires user interaction to dismiss it.
This modal demonstrates different sizing options.
The size can be adjusted based on content requirements.
Are you sure you want to delete this item? This action cannot be undone.
Item: Project Documentation.pdf
Component API
<cds-modal modal-heading="Title" modal-label="Label">
<p>Modal content goes here</p>
<div slot="actions">
<cds-button kind="secondary">Cancel</cds-button>
<cds-button kind="primary">Confirm</cds-button>
</div>
</cds-modal>
CDN
This page uses:
modal.min.js
via
https://1.www.s81c.com/common/carbon/web-components/tag/v2/latest/modal.min.js
Feedback
Suggest changes on GitHub: Edit on GitHub