Component documentation
Basics
Components
- Accordion
- Alert dialog
- Alert stack
- Alert
- Avatar
- Badge
- Blank slate
- Bordered list
- Brand
- Button toolbar
- Button
- Card banner
- Card
- Checkbox
- Citation
- Dialog
- Dropdown
- Error page
- File attachment
- File upload
- Filter pill
- Global banner
- Horizontal ruler
- Icon list
- Input group
- Input icon
- Input
- Key value list
- Link
- List
- Loader
- Multi Select
- Navbar
- Or
- Pagination
- Panel
- Popover
- Progress bar
- Radio button
- Select
- Side menu
- Status pill
- Table of content
- Table
- Tabs
- Textarea
- Toolbar
- Tooltip
- Wizard
Objects
Utilities
Dialog
This page documents the Dialog component.
Sizes
Please choose the dialog size that is appropriate for the form or content it contains. Available sizes are large
, medium
, small
and fullscreen
.
Implementation tips
These dialogs are implemented with dialogs.js
. This is a vanilla JS script intended to serve as an example for a real implementation.
For a full-page example. see here.
When implementing dialogs, please make sure the dialog code is one of the last elements of the page, right before the end of the <body>
tag.
Triggering dialogs
You can trigger a dialog on any element. To do so add the data-dialog attribute and specify the id of the target dialog context. You can write the dialog context mark-up anywhere in your DOM structure, the JS will automatically move it to the document root.
Dialog closing
You can add the data-dialog-close attribute to any child of the dialog. Clicking it will close the dialog. Clicking outside of a dialog window or pressing the esc key will also close the active modal.
Related components
Also see: AlertDialog.
Dialog medium
#Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Dialog small
#Dialog title
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Dialog full screen
#Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Dialog large
#Lorem ipsum dolor sit amet, consectetur adipisicing elit.