import Layout from '../../components/Layout' import { ComponentsSidebar } from '../../sidebars' import { Playground } from '../../components/Playground'; import { Code, Heading, Paragraph } from '@knkui/typography'; import SyntaxHighlighter from '../../components/SyntaxHighlighter'; export default function Dialog() { return ( When to use When you require your user to interact with you app and don’t want your users to jump to a different page and break their workflow. You should also use a dialog in cases where you need to ask for confirmation from the user before doing a lengthy or dangerous action. This could be a deletion of some sorts or initiating a lengthy download. Focus Management When opening a Dialog, focus will be brought inside the Dialog When using both the cancel and confirm button, the cancel button will get focus first. When closing the Dialog, focus will be brought back to the element that was focused before opening the Dialog. This is normally the button that triggered the Dialog. Alerts Alerts are urgent interruptions, requiring acknowledgement, that inform the user about a situation. setIsOpen(false)} > Are we allowed to use analytical features? Let knk help to improve this app. This means sending anonymous usage data to knk, even when no apps are running. ) } ` } /> Full-screen dialogs setIsOpen(false)} fullScreen > Are we allowed to use analytical features? Let knk help to improve this app. This means sending anonymous usage data to knk, even when no apps are running. ) } ` } /> ) }