Loading component…
Loading component…
What automated tests prove about each implementation — separate from whether the package itself is a finished product. Derived from the test files; how the levels are earned.
React
React setupPackage maturity: stable · Implementation verification: Beta
Angular
Angular setup · previewPackage maturity: preview · Implementation verification: Preview
SwiftUI
SwiftUI setupPackage maturity: stable · Implementation verification: Experimental
Jetpack Compose
Jetpack Compose setupPackage maturity: stable · Implementation verification: Experimental
Flutter
Flutter setupPackage maturity: stable · Implementation verification: Experimental
This platform’s whole catalogue is verified to React beta, Angular preview, SwiftUI experimental, Jetpack Compose experimental, Flutter experimental. The catalogue figure is the weakest component on that platform, not an average.
npx @kinetixui/cli add dialognpm i @kinetixui/ui @kinetixui/tokens@kinetixui/ui on npm@kinetixui/tokens on npmThe CLI copies React source. Usage imports from @kinetixui/ui require the npm package; for copied source, use your configured local import instead.
npm i @kinetixui/angular @kinetixui/tokens@kinetixui/angular on npm@kinetixui/tokens on npmSource only, not on Swift Package Manager yet: use a repository checkout pinned to a commit.
Source only, not on Maven Central yet: use a repository checkout pinned to a commit.
Source only, not on pub.dev yet: use a repository checkout pinned to a commit.
Dialog shows a focused task in a window above the page, with a backdrop, a close button and free-form header, body and footer parts.
Reduced motion: off · your browser setting
Keyboard tests check that it opens from the keyboard, moves focus inside, keeps Tab inside while open, and closes on Escape with focus returned to the trigger. Evidence for Dialog on each platform is in the Platforms row above.
Install the package the usage below imports from:
npm install @kinetixui/ui @kinetixui/tokensThe project also needs Tailwind CSS 3 and the KinetixUI preset; see Installation. To own the source instead, copy it into your project with the CLI and import from the folder it writes to:
npx @kinetixui/cli add dialogimport { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter } from "@kinetixui/ui";Styled from the KinetixUI token contract, in light and dark, with no extra configuration. Keyboard and ARIA behaviour comes from Radix Dialog; see Accessibility.
3 behaviours asserted on every commit by packages/ui/src/components-keyboard.test.tsx. Listed because they are tested, not the other way round — if one stops being tested it stops appearing here.
opens from the keyboard and moves focus inside
traps Tab inside the dialog
closes on Escape and returns focus to the trigger