--- title: Dialog desc: Modal window that prompts the user to take an action or provides important information. ico: mdi:card-multiple keywords: - modal - popover - popup alert: ico: mdi:wheelchair-accessibility body: | **For best accessibility:** Please use the **dialog**{ .kbd .kbd-sm } tag. It automatically comes with **FREE** accessibility features like keyboard controls, focus trap with access to browser controls (react focus trap does NOT support this and is NOT accessible), unlimited dialog nesting/stacking, optional click outside to close, etc. controls: - name: title type: text label: Title desc: Title should be as simple as possible and should NEVER exceed 1 line. default: Dialog title - name: body type: text label: Body desc: Should be as simple and easy to parse as possible. default: Lorem ipsum - name: bordered type: toggle label: Bordered desc: Add separators between the header and the footer/actions blocks. default: true - name: withActions type: toggle label: With actions desc: Show the actions block/section default: true previewHeight: 25 preview: |