Dialog
Popover Dialog
A modal built on the HTML popover attribute: opening, Esc, click-outside, the backdrop and the top layer all come from the browser, with no JS at all.
What you can change
- id — every dialog on a page needs its own: it is what links button and window
- the trigger, title, description, confirmLabel and cancelLabel copy
- children — your own content instead of the description: a form, a list, anything
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/dialog-001?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
The component is self-contained: one file, no dependencies, its own palette in local variables --vibeui-dialog-001-*. Opening is held by the HTML popover: the button declares its target with the popovertarget attribute, and the window carries popover="auto". From there closing on Esc and on an outside click, the ::backdrop and the top layer — in which the window does not depend on the overflow and z-index of its parents — all come free. The entrance animation is built on @starting-style and transition-behavior for display and overlay. The window is styled through the [data-vibeui-dialog-001-window] attribute rather than by nesting: in the top layer it stops being a descendant of the component root.
Tags
- dialog
- modal
- popover
- no-js
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…