[{"data":1,"prerenderedAt":2532},["ShallowReactive",2],{"cmdk-index":3,"content:\u002Fcomponents\u002Fdialog":236},[4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232],{"path":5,"title":6,"description":7},"\u002Fcomponents\u002Faccordion","Accordion","A disclosure list built entirely on native \u003Cdetails>\u002F\u003Csummary> elements — zero JavaScript, zero\nARIA reinvention. The browser supplies the disclosure role, aria-expanded, Enter\u002FSpace toggling,\nfocus, and find-in-page expansion for free. Single-open (exclusive) mode uses the platform\nexclusive-accordion feature (Baseline 2024): every \u003Cdetails> shares one auto-generated name, so\nthe browser closes siblings when one opens. multiple drops the shared name so each item opens\nindependently.",{"path":9,"title":10,"description":11},"\u002Fcomponents\u002Falert","Alert","A styled, accessible notification banner. Its live-region politeness is derived from the color —\nurgent danger \u002F warn render role=\"alert\" (assertive), everything else role=\"status\" (polite) —\nso a non-urgent banner isn't announced assertively (override with the live prop). It supports an\noptional icon, a title, body text, an actions row, and a dismiss button.",{"path":13,"title":14,"description":15},"\u002Fcomponents\u002Favatar","Avatar","A data-display component that shows an image, or initials derived from text when there is no\nimage (or while it loads). Supports a title \u002F subtitle column for list and profile UIs.",{"path":17,"title":18,"description":19},"\u002Fcomponents\u002Fbadge","Badge","A small status or count indicator. Attach it to any element as a floating pip, drop it inline next\nto text, or render it standalone — all three modes share the same class surface.",{"path":21,"title":22,"description":23},"\u002Fcomponents\u002Fbutton","Button","A styled, accessible button. Dynamic state is expressed through real attributes — disabled becomes\na true disabled (or aria-disabled for link buttons), loading sets aria-busy, and it ships a\nvisible :focus-visible ring.",{"path":25,"title":26,"description":27},"\u002Fcomponents\u002Fcard","Card","A surface container for grouping related content — a header (prepend slot · title · subtitle ·\nappend slot), a body, and optional action rows. It is the most composed styled component, yet the\nstandalone markup is just nested .ori-card__* elements, so it works without Vue.",{"path":29,"title":30,"description":31},"\u002Fcomponents\u002Fcheckbox","Checkbox","A styled, accessible checkbox built on a real \u003Cinput type=\"checkbox\"> — kept in the DOM\n(visually hidden over a custom box) so keyboard, focus, and native form submission work for free.\nThe accent color and :focus-visible ring are driven by the ori-color token; invalid sets\naria-invalid; disabled is the native attribute.",{"path":33,"title":34,"description":35},"\u002Fcomponents\u002Fcolor-picker","Color picker","An accessible color picker: a 2D saturation × brightness area, a hue slider, a hex field, and\noptional preset swatches — an inline panel you compose into an OriPopover for a\nswatch-triggered flow. Behaviour lives in the framework-agnostic useColorPicker (a zero-dependency sRGB +\n2D-area engine, no adapter or machine); the styled component reuses OriSlider for the\nhue channel and OriInput for the hex field. v-model carries a lowercase color\nstring; the internal working model is HSVA, so the hue survives when you drag into a corner and back.",{"path":37,"title":38,"description":39},"\u002Fcomponents\u002Fcombobox","Combobox","A filterable single-select listbox — type to filter, navigate with the keyboard, pick one. It is the\nfirst component driven end-to-end by @oriui\u002Fheadless: the state machine + prop-getters own the\nbehaviour (open\u002Fclose, filtering, the active-descendant highlight, selection, and the full\nWAI-ARIA keyboard), and OriCombobox renders the styled shell on top. Unlike the pure-CSS\ncomponents, the behaviour needs JavaScript — the standalone classes give you the look, and\nuseCombobox gives you the behaviour for any UI.",{"path":41,"title":42,"description":43},"\u002Fcomponents\u002Fdialog","Dialog","A modal dialog — the library's first genuinely interactive component, built on the native\n\u003Cdialog> element. Unlike the styled-only components, a dialog needs behaviour: focus trap, scroll\nlock, Esc-to-close, click-outside dismissal, and the full WAI-ARIA keyboard contract. All of it comes\nfrom the platform via showModal() — no state-machine dependency and no adapter to wire. The styled\nOriDialog supplies only the markup and tokens.",{"path":45,"title":46,"description":47},"\u002Fcomponents\u002Fdivider","Divider","A horizontal (default) or vertical rule that separates content. An optional centered label turns it\ninto a visual break like the classic \"OR\" between form sections. A pure layout\u002Fstructure primitive —\nno interactive behaviour, no variants, no size scale.",{"path":49,"title":50,"description":51},"\u002Fcomponents\u002Ffield","Field","The shared shell for form controls — one source of truth for the label \u002F hint \u002F error \u002F\nrequired contract that Input, Select,\nTextarea, Combobox, Slider,\nRadioGroup, and ColorPicker otherwise each wire\nby hand. Wrap a control in OriField and it adopts the field's id, aria-describedby,\naria-invalid, required, disabled, and size — and stops rendering its own label and helper, so\nthere is exactly one of each, wired identically every time. Group and composite controls (RadioGroup,\nCombobox's listbox, ColorPicker) name themselves via aria-labelledby pointing at the field's label.",{"path":53,"title":54,"description":55},"\u002Fcomponents\u002Ficon","Icon","A styled, accessible SVG icon. Decorative by default — renders with aria-hidden=\"true\" and no\nrole. Pass a label to expose it to assistive technology as an image: the icon switches to\nrole=\"img\" + aria-label automatically.",{"path":57,"title":58,"description":59},"\u002Fcomponents\u002Finput","Input","A labelled, accessible text field with v-model. State is expressed through real attributes — the\nnative disabled, aria-invalid when there is an error, and an aria-describedby that points at\nthe rendered hint or error. The label is wired to the field with for\u002Fid (auto-generated via\nuseId when you don't pass one), and arbitrary native attributes (name, autocomplete,\ninputmode, …) fall through to the underlying \u003Cinput>.",{"path":61,"title":62,"description":63},"\u002Fcomponents\u002Fjoin","Join","A thin wrapper that collapses the shared radii and borders of adjacent controls so they read as one\nsegmented unit — button groups, input+button combos, segmented toolbars. No visual styling of its\nown: all colour, size, and variant tokens live on the children.",{"path":65,"title":66,"description":67},"\u002Fcomponents\u002Fkbd","Kbd","A keyboard-key chip — a semantic \u003Ckbd> element styled as a monospace bordered chip. Use it to\nrepresent individual keys, modifier keys, or multi-key shortcuts inline in prose or UI hints.",{"path":69,"title":70,"description":71},"\u002Fcomponents\u002Flink","Link","An inline prose link — the right choice when a destination lives in running text. Distinct from\nOriButton rendered as=\"a\": a button that navigates is still a button; a link in a sentence is\nOriLink. Underlined by default (the affordance survives without color), with a _hover mode that\nhides the underline at rest and reveals it on hover. A visible :focus-visible ring uses the same\ncolor as the text.",{"path":73,"title":74,"description":75},"\u002Fcomponents\u002Fmenu","Menu","A WAI-ARIA menu button: a trigger opens a roving-tabindex action list. Unlike the Popover, open\u002Fclose,\nfocus movement, and click-outside dismissal are driven entirely by the @oriui\u002Fheadless menu\nmachine in JavaScript, not the Popover API — so the panel is not top-layer and carries a z-index. The\npanel is still placed with the same CSS Anchor Positioning primitive as the Popover (ori-anchored),\nzero positioning JS.",{"path":77,"title":78,"description":79},"\u002Fcomponents\u002Fpopover","Popover","A positioned overlay for supplementary content — a menu, a filter panel, a rich hint — tethered to a\ntrigger. It runs entirely on the platform: the trigger opens the panel through the Popover API\n(top-layer, light-dismiss, Esc — zero JS), and the panel is placed with CSS Anchor Positioning\n(anchor-name \u002F position-anchor + position-area, with a collision flip via\nposition-try-fallbacks) — zero positioning JS, no scroll\u002Fresize listeners. Baseline 2026, with\ngraceful degradation: an older engine still opens the panel and places it, just without the\ncollision-aware flip.",{"path":81,"title":82,"description":83},"\u002Fcomponents\u002Fprogress","Progress","A horizontal progress bar that communicates task completion. It supports a determinate mode (a\nknown value out of a max) and an indeterminate mode (animated sweep) for tasks with no\nmeasurable progress. State is expressed through ARIA attributes — aria-valuenow is omitted when\nindeterminate, giving screen readers the correct cue automatically.",{"path":85,"title":86,"description":87},"\u002Fcomponents\u002Fradio","Radio","A \"choose one\" compound control. A role=\"radiogroup\" container names the set via\naria-labelledby; each option is a real \u003Cinput type=\"radio\"> sharing a single name — so the\nbrowser enforces single-select and native form submission — visually hidden behind a styled circle.\nPass the options as an array; per-option disabled is supported.",{"path":89,"title":90,"description":91},"\u002Fcomponents\u002Fselect","Select","A native-first styled select control with v-model. The browser owns the dropdown, full keyboard\ninteraction, type-ahead, and all ARIA semantics — oriUI only styles the closed control and draws a\ndecorative chevron. It shares the form-control contract of Input and\nTextarea: a built-in label, hint, error, and required asterisk, all\nwired for accessibility. State is expressed through real attributes — native disabled and\naria-invalid=\"true\" (not classes) — and arbitrary native attrs (name, autocomplete, …) fall\nthrough to the \u003Cselect> via inheritAttrs:false.",{"path":93,"title":94,"description":95},"\u002Fcomponents\u002Fskeleton","Skeleton","A loading placeholder that signals content is on its way. An animated shimmer sweep sweeps across the\nblock; on devices that request reduced motion the shimmer stops and the tinted block alone signals the\nloading state. Size it with an inline style or a utility class — the skeleton itself carries no\nintrinsic width or height beyond a 1em minimum height.",{"path":97,"title":98,"description":99},"\u002Fcomponents\u002Fslider","Slider","A styled, accessible range control built on a native \u003Cinput type=\"range\">. Because the\nunderlying element is real HTML, the browser supplies role=\"slider\", the full keyboard contract\n(arrow keys, Home\u002FEnd, PageUp\u002FPageDown), and screen-reader value announcements for free — no\nJavaScript bridge needed. Colour and the filled-track portion are driven by CSS custom properties;\nv-model carries a number.",{"path":101,"title":102,"description":103},"\u002Fcomponents\u002Fspinner","Spinner","An accessible loading indicator — renders role=\"status\" with an aria-label (default \"Loading\")\nso assistive technology announces the busy state without any extra work. Use it standalone for a\npage-level or section-level loader, or embed it inline inside a button or label.",{"path":105,"title":106,"description":107},"\u002Fcomponents\u002Fstack","Stack","The workhorse layout primitive — two flex modes in one component. A stack (ori-stack) is a\nflex column: children flow top-to-bottom with a consistent gap. A cluster (ori-cluster) is a\nwrapping flex row: children flow left-to-right, wrap onto new lines, and are centered on the\ncross-axis — ideal for tag clouds, button groups, and badge sets.",{"path":109,"title":110,"description":111},"\u002Fcomponents\u002Fsurface","Surface","An elevated floating surface — a lifted panel with a surface background, an optional hairline, a\ncorner radius, and a mode-aware shadow, and nothing else. No padding, no header\u002Ftitle semantics: it\nis just the box, and the caller owns the layout inside. It's the building block for chrome that floats\nover content — a toolbar island, a zoom control, a side panel, a menu popout's container — and the\nelevation counterpart to Card, which is a content card (padding + header \u002F\ntitle \u002F body \u002F actions).",{"path":113,"title":114,"description":115},"\u002Fcomponents\u002Fswitch","Switch","An on\u002Foff toggle built on a real \u003Cinput type=\"checkbox\" role=\"switch\"> — kept in the DOM\n(visually hidden over a track + thumb) so keyboard, focus, and form submission work for free, and\nassistive technology announces it as a switch. v-model is a boolean. The \"on\" track color and the\n:focus-visible ring both come from the ori-color token; the track and thumb scale with\nori-font-size so size is a single prop.",{"path":117,"title":118,"description":119},"\u002Fcomponents\u002Ftabs","Tabs","An accessible tabs widget with automatic activation. The tablist holds a roving tabindex so\nTab \u002F Shift+Tab enter and leave the group as a single keyboard stop; arrow keys move between\ntabs and immediately select them. State is expressed through real ARIA attributes — aria-selected\ndrives both the active indicator and the label colour; disabled is the native button attribute.",{"path":121,"title":122,"description":123},"\u002Fcomponents\u002Ftag","Tag","A compact label for categorising, filtering, or annotating content — status chips, keyword\nbadges, and removable filter pills. State is expressed through real attributes: aria-disabled\ndisables the tag and its close button without removing it from the DOM.",{"path":125,"title":126,"description":127},"\u002Fcomponents\u002Ftextarea","Textarea","A labelled, accessible multiline text field with v-model. State is expressed through real\nattributes — the native disabled, aria-invalid when there is an error, and an aria-describedby\nthat points at the rendered hint or error. The label is wired to the field with for\u002Fid\n(auto-generated via useId when you don't pass one). Unlike a single-line input the field has no\nfixed height — it grows from a rows-based min-height and stays user-resizable.",{"path":129,"title":130,"description":131},"\u002Fcomponents\u002Ftoast","Toast","An imperative notification system. Push a toast from anywhere with useToast() and render\n\u003COriToaster \u002F> once near the app root to display the queue. No event bus, no Vuex, no provide\u002Finject —\njust a module-level reactive queue that every call site shares.",{"path":133,"title":134,"description":135},"\u002Fcomponents\u002Ftoolbar","Toolbar","A WAI-ARIA toolbar: a set of related controls that share a single Tab stop, navigated internally\nwith the arrow keys via roving tabindex (real DOM focus, not aria-activedescendant). Five\ncomponents make it up — OriToolbar (the root, role=\"toolbar\"), OriToolbarButton (an item —\ncomposes OriButton), OriToolbarSeparator (a perpendicular divider), and a paired\nOriToolbarToggleGroup \u002F OriToolbarToggleItem for a segmented single- or multi-select toggle.\nUnlike the data-driven OriMenu (an items array plus a machine), a toolbar is compositional —\nyou assemble it from slotted components in whatever order and combination you need — so the behaviour\nunderneath, useToolbar from @oriui\u002Fheadless, is a provide\u002Finject\nroving-focus context rather than a state machine over an array.",{"path":137,"title":138,"description":139},"\u002Fcomponents\u002Ftooltip","Tooltip","A CSS-driven tooltip that shows additional context when a control is focused or hovered. The bubble\nis always in the DOM (so the aria-describedby reference is never dangling) and shown\u002Fhidden\nentirely in CSS — no JS state machine, no positioning engine. Show is pure :focus-within (keyboard)\nand :hover wrapped in @media (hover: hover) (pointer, without sticking open on touch).",{"path":141,"title":142,"description":143},"\u002Fguides\u002Fcss","Using the CSS layer","oriUI is three independent layers woven around one set of design tokens. The @oriui\u002Fcss layer is\njust standalone .ori-* classes plus the token theming — no Vue, no build step, no Tailwind. You\nship the stylesheet and write classes. This is how oriUI works with htmx, Astro, or plain HTML —\nthe DaisyUI niche, minus Tailwind.",{"path":145,"title":146,"description":147},"\u002Fguides\u002Fcustomization","Customization","Make it yours — without authoring a whole skin. Most products need one thing: their brand color and\ntheir corner radius on top of accessible, ready-made components. oriUI lets you do that by repointing\na handful of design tokens — a few CSS custom properties in your own stylesheet, no rewrite, no fork.\nThis is the prototype fast, scale without rewriting payoff: the same \u003COriButton> you shipped on\nday one becomes on-brand by the time you ship to users, and nothing about the component changes.",{"path":149,"title":150,"description":151},"\u002Fguides\u002Fdesign-tokens","Design tokens","oriUI is three independent layers woven around one set of design tokens. This page is the\ncatalog — every token, and the resolution model that turns a raw value into the colour a component\npaints. The chain is short and deliberate: a primitive feeds a semantic role, a role feeds a\nper-instance alias, and components read only the alias. That indirection is what lets a single\nclass repoint a single token — the whole zero-runtime theming story rests on it.",{"path":153,"title":154,"description":155},"\u002Fguides\u002Fskins","Skin gallery","A skin is a named palette — a set of token overrides applied with one attribute on \u003Chtml>\n(data-ori-skin). Every skin repoints only the four skinnable roles (primary · secondary ·\nsurface · background, each with a -light and -dark source); the status hues (success ·\nwarn · danger · info) stay shared, and every pairing targets WCAG AA for body text. Switching\na skin is a single attribute write — zero runtime, no recompute, no flash.",{"path":157,"title":158,"description":159},"\u002Fguides\u002Ftheming","Theming","A theme is a mode (light or dark) layered over a skin (a named palette). Both are pure\nattribute toggles on \u003Chtml> — flipping either repoints the active --ori-color-* aliases through\nCSS custom properties, so everything reskins at once with no JavaScript, no recompute, no flash.\nThis is the same zero-runtime story across every layer: a Vue app, the standalone @oriui\u002Fcss\nclasses, htmx fragments, or hand-written HTML all theme identically.",{"path":161,"title":162,"description":163},"\u002Fheadless\u002Fcore","Core","The framework-agnostic heart of the headless layer: a behaviour contract plus a zero-dependency\nnative engine, written in vanilla TypeScript. Every framework binding consumes the same contract,\nso a primitive behaves identically wherever it runs — and the behaviour stays swappable per primitive,\nwithout touching markup.",{"path":165,"title":166,"description":167},"\u002Fheadless\u002Fuse-color-picker","useColorPicker","A headless sRGB color picker — a 2D saturation × brightness area, a hue channel, an optional\nalpha channel, a hex field, and optional preset swatches, assembled from ready-to-bind\nprop-getters. It owns the working color as an internal HSVA object (so the hue survives a grayscale\nround-trip when you drag into a corner and back) and composes a zero-dependency sRGB engine plus pure\n2D-area math from the core: parseColor \u002F formatColor (loose parse in, lowercase string out),\nhsvToRgb \u002F rgbToHex \u002F rgbToHsl (hex \u002F rgb \u002F hsv \u002F hsl conversion), readableInk (WCAG-luminance\nink over a swatch), and resolveAreaPosition \u002F stepAreaPosition (pointer → coordinate and keyboard\nstepping across the two axes).",{"path":169,"title":170,"description":171},"\u002Fheadless\u002Fuse-combobox","useCombobox","A headless combobox primitive — an editable text input paired with a popup listbox — implementing\nthe WAI-ARIA combobox with listbox popup pattern: type to filter, navigate with the keyboard via\nactive-descendant, and pick a single option. It owns the behaviour (open\u002Fclose, filtering, the\nhighlight, selection, and the full keyboard) and the ARIA wiring as ready-to-bind prop bags; you own\nthe markup and styles.",{"path":173,"title":174,"description":175},"\u002Fheadless\u002Fuse-dialog","useDialog","A headless modal dialog primitive built on the native \u003Cdialog> element — focus trap, scroll lock,\nEscape to close, focus return, and aria-modal semantics all come from the platform via\nshowModal(). It owns the open state and the ARIA wiring as ready-to-bind prop bags; you own the\nmarkup and styles (you render the \u003Cdialog> and drive showModal() \u002F close() from open).",{"path":177,"title":178,"description":179},"\u002Fheadless\u002Fuse-disclosure","useDisclosure","A headless show \u002F hide primitive for disclosure widgets — expandable panels, accordions, menus,\nthe collapsible sidebar groups on this very site. It owns the open state, the WAI-ARIA wiring, and the\ntoggle handler; you own the markup and the styles.",{"path":181,"title":182,"description":183},"\u002Fheadless\u002Fuse-dismissable","useDismissable","A headless dismiss layer — the \"close the overlay on an outside interaction\" glue a non-platform\noverlay needs, the pattern Radix DismissableLayer \u002F Floating-UI useDismiss standardise. While\nenabled, it attaches document listeners and calls onDismiss() when an interaction lands outside\nthe overlay's own elements. Each overlay picks the strategy that fits it:",{"path":185,"title":186,"description":187},"\u002Fheadless\u002Fuse-menu","useMenu","A headless menu button primitive built on the WAI-ARIA menu-button pattern — a trigger that opens a\npopup menu of actions, with roving tabindex, arrow \u002F Home \u002F End navigation, and Enter \u002F Space\nactivation. It owns the open state and the highlighted item and exposes the ARIA wiring as ready-to-bind\nprop bags; you own the markup, the styles, and the DOM focus (roving needs real focus, and\nclick-outside \u002F focus-return are host concerns a state projection can't reach).",{"path":189,"title":190,"description":191},"\u002Fheadless\u002Fuse-tabs","useTabs","A headless WAI-ARIA tabs widget with automatic activation — a tablist of tabs behind a single\nTab stop, navigated with the arrow keys via roving tabindex (real DOM focus, not\naria-activedescendant), where moving focus also selects. It is data-driven: you pass the tabs\narray plus the selected value, and it returns the tablist prop bag plus per-tab and per-panel\nprop-getters (ids, aria-selected, aria-controls, aria-labelledby, roving tabindex, hidden).",{"path":193,"title":194,"description":195},"\u002Fheadless\u002Fuse-theme","useTheme","A headless light \u002F dark theme controller — it owns the mode setting, resolves auto against the OS\nscheme live, persists the choice, and applies it to the DOM. It applies through applyTheme, which sets\nthe ori-theme_{light,dark} class (removing the opposite — exactly one is on at a time) and works\naround a bug in current Chromium where a runtime theme toggle otherwise leaves styled components\npainting the previous theme's colours until they re-render.",{"path":197,"title":198,"description":199},"\u002Fheadless\u002Fuse-toast","useToast","A headless toast queue — an imperative notification store you call from anywhere (toast('Saved'))\nand render once near the app root. The behaviour is a framework-agnostic engine (a plain array + a Set\nof listeners + auto-dismiss timers) projected into the host framework's reactivity: a Vue reactive\narray and a Svelte readable store. It is a client-side singleton — every useToast() call\nshares the one queue, so a push from anywhere reaches the single renderer.",{"path":201,"title":202,"description":203},"\u002Fheadless\u002Fuse-token","useToken","A reactive token bridge — it resolves an --ori-* design token to its computed value in JS, for\ncanvas \u002F WebGL \u002F chart painters (Konva, ECharts, …) that draw outside the CSS cascade yet must follow the\nactive skin. It reads through a hidden probe, because the obvious API is a trap: getComputedStyle(el).getPropertyValue('--x') hands back the unresolved var() chain (oriUI aliases chain), not a color —\nsubstitution only happens at a real property's computed-value time.",{"path":205,"title":206,"description":207},"\u002Fheadless\u002Fuse-toolbar","useToolbar","A headless WAI-ARIA toolbar — a set of related controls behind a single Tab stop, navigated\ninternally with the arrow keys via roving tabindex (real DOM focus, not aria-activedescendant).\nThe root owns orientation \u002F loop \u002F direction and a single keydown handler; each item registers itself\nand receives its roving tabindex, so a toolbar is assembled from arbitrary slotted components\nrather than a fixed data array.",{"path":209,"title":210,"description":211},"\u002Foverview\u002Faccessibility","Accessibility","Accessibility in oriUI is structural, not a coat of polish on top. The same decisions that make\nthe components correct for assistive technology also make them themeable and framework-agnostic — they\nare the same source of truth, not a separate effort.",{"path":213,"title":214,"description":215},"\u002Foverview\u002Fapplicability","Applicability","oriUI is three independently-consumable layers woven around one token contract. The promise is\nprototype fast, scale without rewriting: reach for the styled Vue components first, drop to the\nheadless behaviour when you need control, or drop to the standalone CSS when you leave Vue entirely —\nwithout changing your design tokens. This page maps each layer to where it runs.",{"path":217,"title":218,"description":219},"\u002Foverview\u002Fcheat-sheet","Cheat sheet","Everything in one page — install, the class model, every component, and the design tokens. For the\nmachine-readable version (e.g. to paste into an AI), fetch \u002Fllms.txt (index) or\n\u002Fllms-full.txt (every page concatenated).",{"path":221,"title":222,"description":223},"\u002Foverview\u002Fcomparisons","Idea & comparisons","oriUI's one-line idea — prototype fast, scale without rewriting — falls out of a single\narchitectural choice: three layers woven around one token contract, so you can change depth\n(styled → headless → CSS) without changing your design system. This page sets that idea next to the\nlibraries oriUI learns from, and is honest about where it does and doesn't compete.",{"path":225,"title":226,"description":227},"\u002Foverview\u002Fget-started","Get started","oriUI is a layered Vue 3 UI library. Install it and import only what you need.",{"path":229,"title":230,"description":231},"\u002Foverview\u002Finstallation","Installation","oriUI is three layers in two packages. Install only the layer you need — they share one token\ncontract, so you can add another later without reworking what you built.",{"path":233,"title":234,"description":235},"\u002Foverview\u002Fintroduction","Introduction","oriUI (織り, ori — \"weaving\") is a layered Vue 3 UI library. The idea in one line:\nprototype fast, scale without rewriting. Start with ready-made styled components; when you need\nmore control, drop down to the behavior or the raw CSS — without throwing away your work, because\nevery layer is woven around the same design tokens.",{"id":237,"title":42,"body":238,"description":43,"extension":2527,"meta":2528,"navigation":677,"path":41,"seo":2529,"stem":2530,"__hash__":2531},"docs\u002Fcomponents\u002Fdialog.md",{"type":239,"value":240,"toc":2510},"minimark",[241,245,276,322,327,333,337,341,344,354,370,374,380,817,821,843,963,967,974,1086,1090,1116,1434,1446,1450,1461,1567,1571,1574,1881,1884,1893,1944,1997,2000,2009,2013,2156,2160,2205,2235,2266,2294,2298,2362,2366,2393,2399,2500,2506],[242,243,42],"h1",{"id":244},"dialog",[246,247,248,249,253,254,258,259,263,264,267,268,271,272,275],"p",{},"A modal dialog — the library's first genuinely ",[250,251,252],"strong",{},"interactive"," component, built on the native\n",[255,256,257],"code",{},"\u003Cdialog>"," element. Unlike the styled-only components, a dialog ",[260,261,262],"em",{},"needs behaviour",": focus trap, scroll\nlock, ",[255,265,266],{},"Esc","-to-close, click-outside dismissal, and the full WAI-ARIA keyboard contract. All of it comes\nfrom the platform via ",[255,269,270],{},"showModal()"," — no state-machine dependency and no adapter to wire. The styled\n",[255,273,274],{},"OriDialog"," supplies only the markup and tokens.",[246,277,278,279,282,283,288,289,294,295,299,300,305,306,309,310,313,314,317,318,321],{},"The examples are organised by ",[250,280,281],{},"layer",": the ",[284,285,287],"a",{"href":286},"#classes","class reference"," is the standalone\n",[250,290,291],{},[255,292,293],{},"@oriui\u002Fcss"," layer, and the ",[284,296,298],{"href":297},"#framework-api","Framework API"," is the ",[250,301,302],{},[255,303,304],{},"@oriui\u002Fvue"," component. Every\nexample is live — flip its code between ",[250,307,308],{},"HTML"," (the standalone classes, also your htmx \u002F Astro \u002F Svelte \u002F\nplain-HTML usage), ",[250,311,312],{},"Vue",", and ",[250,315,316],{},"Svelte"," (",[255,319,320],{},"@oriui\u002Fheadless\u002Fsvelte","); HTML is the default.",[323,324,326],"h2",{"id":325},"classes","Classes",[246,328,329,330,332],{},"A dialog is a set of part classes hung on a native ",[255,331,257],{}," element — there is no single block class\nthat drives variant tokens. Each part class maps to a structural element produced by the component.",[334,335],"class-table",{":rows":336},"[{\"class\":\"ori-dialog\",\"type\":\"Block\",\"description\":\"The native \u003Ccode>\u003Cdialog>\u003C\u002Fcode> panel: max-width 460 px, rounded, surface-coloured. Its \u003Ccode>::backdrop\u003C\u002Fcode> pseudo-element is the dimmed overlay.\"},{\"class\":\"ori-dialog__content\",\"type\":\"Layout\",\"description\":\"Padding wrapper inside the dialog that holds the header and body.\"},{\"class\":\"ori-dialog__header\",\"type\":\"Part\",\"description\":\"Flex row — title on the left, close button on the right.\"},{\"class\":\"ori-dialog__title\",\"type\":\"Part\",\"description\":\"\u003Ccode>h2\u003C\u002Fcode> heading; its \u003Ccode>id\u003C\u002Fcode> is wired to \u003Ccode>aria-labelledby\u003C\u002Fcode> on the dialog.\"},{\"class\":\"ori-dialog__close\",\"type\":\"Part\",\"description\":\"Bare close button (\u003Ccode>aria-label=Close\u003C\u002Fcode>); styled via opacity.\"},{\"class\":\"ori-dialog__body\",\"type\":\"Part\",\"description\":\"Body copy region below the header.\"}]",[323,338,340],{"id":339},"anatomy","Anatomy",[246,342,343],{},"The component renders its parts in this order:",[345,346,351],"pre",{"className":347,"code":349,"language":350},[348],"language-text","#trigger slot (caller-supplied open control)\n  └─ \u003Cdialog class=\"ori-dialog\">         (native element; ::backdrop is the overlay)\n       └─ .ori-dialog__content           (padding wrapper)\n            ├─ .ori-dialog__header\n            │    ├─ .ori-dialog__title    (h2; #title slot or `title` prop)\n            │    └─ .ori-dialog__close    (× button, aria-label=\"Close\")\n            └─ .ori-dialog__body          (default slot — body copy)\n","text",[255,352,349],{"__ignoreMap":353},"",[246,355,356,357,359,360,362,363,366,367,369],{},"The ",[255,358,257],{}," is rendered inline; ",[255,361,270],{}," promotes it to the browser's top layer, so it escapes\nany stacking context without ",[255,364,365],{},"\u003CTeleport>",". A closed ",[255,368,257],{}," is hidden, so SSR markup stays stable.",[323,371,373],{"id":372},"basic","Basic",[246,375,376,377,379],{},"Open the dialog, tab through its controls, press ",[255,378,266],{},", and observe that focus returns to the\ntrigger. Page scroll is locked while it is open.",[381,382,383,386,456,654],"example",{},[384,385],"dialog-demo",{},[387,388,389],"template",{"v-slot:vue":353},[345,390,394],{"className":391,"code":392,"language":393,"meta":353,"style":353},"language-vue shiki shiki-themes github-light github-dark","\u003COriDialog title=\"Hello, oriUI\">\n    \u003Ctemplate #trigger=\"{ props }\">\n        \u003COriButton v-bind=\"props\" text=\"Open dialog\" \u002F>\n    \u003C\u002Ftemplate>\n    \u003Cp>This modal traps focus, closes on Escape, and locks page scroll.\u003C\u002Fp>\n\u003C\u002FOriDialog>\n","vue",[255,395,396,422,428,434,440,446],{"__ignoreMap":353},[397,398,401,405,408,412,415,419],"span",{"class":399,"line":400},"line",1,[397,402,404],{"class":403},"sVt8B","\u003C",[397,406,274],{"class":407},"s9eBZ",[397,409,411],{"class":410},"sScJk"," title",[397,413,414],{"class":403},"=",[397,416,418],{"class":417},"sZZnC","\"Hello, oriUI\"",[397,420,421],{"class":403},">\n",[397,423,425],{"class":399,"line":424},2,[397,426,427],{"class":403},"    \u003Ctemplate #trigger=\"{ props }\">\n",[397,429,431],{"class":399,"line":430},3,[397,432,433],{"class":403},"        \u003COriButton v-bind=\"props\" text=\"Open dialog\" \u002F>\n",[397,435,437],{"class":399,"line":436},4,[397,438,439],{"class":403},"    \u003C\u002Ftemplate>\n",[397,441,443],{"class":399,"line":442},5,[397,444,445],{"class":403},"    \u003Cp>This modal traps focus, closes on Escape, and locks page scroll.\u003C\u002Fp>\n",[397,447,449,452,454],{"class":399,"line":448},6,[397,450,451],{"class":403},"\u003C\u002F",[397,453,274],{"class":407},[397,455,421],{"class":403},[387,457,458],{"v-slot:html":353},[345,459,463],{"className":460,"code":461,"language":462,"meta":353,"style":353},"language-html shiki shiki-themes github-light github-dark","\u003C!-- Structure only — drive it with dialog.showModal() to get the trap \u002F ::backdrop. -->\n\u003Cdialog class=\"ori-dialog\" aria-labelledby=\"dlg-title\">\n    \u003Cdiv class=\"ori-dialog__content\">\n        \u003Cheader class=\"ori-dialog__header\">\n            \u003Ch2 id=\"dlg-title\" class=\"ori-dialog__title\">Hello, oriUI\u003C\u002Fh2>\n            \u003Cbutton class=\"ori-dialog__close\" aria-label=\"Close\">×\u003C\u002Fbutton>\n        \u003C\u002Fheader>\n        \u003Cdiv class=\"ori-dialog__body\">\n            \u003Cp>This modal traps focus, closes on Escape, and locks page scroll.\u003C\u002Fp>\n        \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n\u003C\u002Fdialog>\n","html",[255,464,465,471,495,512,529,557,586,596,612,626,635,645],{"__ignoreMap":353},[397,466,467],{"class":399,"line":400},[397,468,470],{"class":469},"sJ8bj","\u003C!-- Structure only — drive it with dialog.showModal() to get the trap \u002F ::backdrop. -->\n",[397,472,473,475,477,480,482,485,488,490,493],{"class":399,"line":424},[397,474,404],{"class":403},[397,476,244],{"class":407},[397,478,479],{"class":410}," class",[397,481,414],{"class":403},[397,483,484],{"class":417},"\"ori-dialog\"",[397,486,487],{"class":410}," aria-labelledby",[397,489,414],{"class":403},[397,491,492],{"class":417},"\"dlg-title\"",[397,494,421],{"class":403},[397,496,497,500,503,505,507,510],{"class":399,"line":430},[397,498,499],{"class":403},"    \u003C",[397,501,502],{"class":407},"div",[397,504,479],{"class":410},[397,506,414],{"class":403},[397,508,509],{"class":417},"\"ori-dialog__content\"",[397,511,421],{"class":403},[397,513,514,517,520,522,524,527],{"class":399,"line":436},[397,515,516],{"class":403},"        \u003C",[397,518,519],{"class":407},"header",[397,521,479],{"class":410},[397,523,414],{"class":403},[397,525,526],{"class":417},"\"ori-dialog__header\"",[397,528,421],{"class":403},[397,530,531,534,536,539,541,543,545,547,550,553,555],{"class":399,"line":442},[397,532,533],{"class":403},"            \u003C",[397,535,323],{"class":407},[397,537,538],{"class":410}," id",[397,540,414],{"class":403},[397,542,492],{"class":417},[397,544,479],{"class":410},[397,546,414],{"class":403},[397,548,549],{"class":417},"\"ori-dialog__title\"",[397,551,552],{"class":403},">Hello, oriUI\u003C\u002F",[397,554,323],{"class":407},[397,556,421],{"class":403},[397,558,559,561,564,566,568,571,574,576,579,582,584],{"class":399,"line":448},[397,560,533],{"class":403},[397,562,563],{"class":407},"button",[397,565,479],{"class":410},[397,567,414],{"class":403},[397,569,570],{"class":417},"\"ori-dialog__close\"",[397,572,573],{"class":410}," aria-label",[397,575,414],{"class":403},[397,577,578],{"class":417},"\"Close\"",[397,580,581],{"class":403},">×\u003C\u002F",[397,583,563],{"class":407},[397,585,421],{"class":403},[397,587,589,592,594],{"class":399,"line":588},7,[397,590,591],{"class":403},"        \u003C\u002F",[397,593,519],{"class":407},[397,595,421],{"class":403},[397,597,599,601,603,605,607,610],{"class":399,"line":598},8,[397,600,516],{"class":403},[397,602,502],{"class":407},[397,604,479],{"class":410},[397,606,414],{"class":403},[397,608,609],{"class":417},"\"ori-dialog__body\"",[397,611,421],{"class":403},[397,613,615,617,619,622,624],{"class":399,"line":614},9,[397,616,533],{"class":403},[397,618,246],{"class":407},[397,620,621],{"class":403},">This modal traps focus, closes on Escape, and locks page scroll.\u003C\u002F",[397,623,246],{"class":407},[397,625,421],{"class":403},[397,627,629,631,633],{"class":399,"line":628},10,[397,630,591],{"class":403},[397,632,502],{"class":407},[397,634,421],{"class":403},[397,636,638,641,643],{"class":399,"line":637},11,[397,639,640],{"class":403},"    \u003C\u002F",[397,642,502],{"class":407},[397,644,421],{"class":403},[397,646,648,650,652],{"class":399,"line":647},12,[397,649,451],{"class":403},[397,651,244],{"class":407},[397,653,421],{"class":403},[387,655,656],{"v-slot:svelte":353},[345,657,661],{"className":658,"code":659,"language":660,"meta":353,"style":353},"language-svelte shiki shiki-themes github-light github-dark","\u003Cscript>\n    import { useDialog } from '@oriui\u002Fheadless\u002Fsvelte';\n\n    \u002F\u002F No styled Svelte component yet — drive a native \u003Cdialog> with @oriui\u002Fheadless\u002Fsvelte.\n    let dialogEl;\n    const { open, triggerProps, dialogProps, titleProps, closeTriggerProps } = useDialog({ id: 'greet' });\n\n    \u002F\u002F The platform gives the focus trap, Esc and ::backdrop; we only toggle showModal()\u002Fclose() on `open`.\n    $effect(() => {\n        if (!dialogEl) return;\n        if ($open) dialogEl.showModal();\n        else if (dialogEl.open) dialogEl.close();\n    });\n\u003C\u002Fscript>\n\n\u003Cbutton {...$triggerProps} class=\"ori-button ori-variant_fill ori-color_primary\">Open dialog\u003C\u002Fbutton>\n\n\u003Cdialog {...$dialogProps} bind:this={dialogEl} class=\"ori-dialog\">\n    \u003Cdiv class=\"ori-dialog__content\">\n        \u003Cheader class=\"ori-dialog__header\">\n            \u003Ch2 {...$titleProps} class=\"ori-dialog__title\">Hello, oriUI\u003C\u002Fh2>\n            \u003Cbutton {...$closeTriggerProps} class=\"ori-dialog__close\" aria-label=\"Close\">×\u003C\u002Fbutton>\n        \u003C\u002Fheader>\n        \u003Cdiv class=\"ori-dialog__body\">\n            \u003Cp>This modal traps focus and closes on Escape or a backdrop click.\u003C\u002Fp>\n        \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n\u003C\u002Fdialog>\n","svelte",[255,662,663,668,673,679,684,689,694,698,703,708,713,718,723,729,735,740,746,751,757,763,769,775,781,787,793,799,805,811],{"__ignoreMap":353},[397,664,665],{"class":399,"line":400},[397,666,667],{},"\u003Cscript>\n",[397,669,670],{"class":399,"line":424},[397,671,672],{},"    import { useDialog } from '@oriui\u002Fheadless\u002Fsvelte';\n",[397,674,675],{"class":399,"line":430},[397,676,678],{"emptyLinePlaceholder":677},true,"\n",[397,680,681],{"class":399,"line":436},[397,682,683],{},"    \u002F\u002F No styled Svelte component yet — drive a native \u003Cdialog> with @oriui\u002Fheadless\u002Fsvelte.\n",[397,685,686],{"class":399,"line":442},[397,687,688],{},"    let dialogEl;\n",[397,690,691],{"class":399,"line":448},[397,692,693],{},"    const { open, triggerProps, dialogProps, titleProps, closeTriggerProps } = useDialog({ id: 'greet' });\n",[397,695,696],{"class":399,"line":588},[397,697,678],{"emptyLinePlaceholder":677},[397,699,700],{"class":399,"line":598},[397,701,702],{},"    \u002F\u002F The platform gives the focus trap, Esc and ::backdrop; we only toggle showModal()\u002Fclose() on `open`.\n",[397,704,705],{"class":399,"line":614},[397,706,707],{},"    $effect(() => {\n",[397,709,710],{"class":399,"line":628},[397,711,712],{},"        if (!dialogEl) return;\n",[397,714,715],{"class":399,"line":637},[397,716,717],{},"        if ($open) dialogEl.showModal();\n",[397,719,720],{"class":399,"line":647},[397,721,722],{},"        else if (dialogEl.open) dialogEl.close();\n",[397,724,726],{"class":399,"line":725},13,[397,727,728],{},"    });\n",[397,730,732],{"class":399,"line":731},14,[397,733,734],{},"\u003C\u002Fscript>\n",[397,736,738],{"class":399,"line":737},15,[397,739,678],{"emptyLinePlaceholder":677},[397,741,743],{"class":399,"line":742},16,[397,744,745],{},"\u003Cbutton {...$triggerProps} class=\"ori-button ori-variant_fill ori-color_primary\">Open dialog\u003C\u002Fbutton>\n",[397,747,749],{"class":399,"line":748},17,[397,750,678],{"emptyLinePlaceholder":677},[397,752,754],{"class":399,"line":753},18,[397,755,756],{},"\u003Cdialog {...$dialogProps} bind:this={dialogEl} class=\"ori-dialog\">\n",[397,758,760],{"class":399,"line":759},19,[397,761,762],{},"    \u003Cdiv class=\"ori-dialog__content\">\n",[397,764,766],{"class":399,"line":765},20,[397,767,768],{},"        \u003Cheader class=\"ori-dialog__header\">\n",[397,770,772],{"class":399,"line":771},21,[397,773,774],{},"            \u003Ch2 {...$titleProps} class=\"ori-dialog__title\">Hello, oriUI\u003C\u002Fh2>\n",[397,776,778],{"class":399,"line":777},22,[397,779,780],{},"            \u003Cbutton {...$closeTriggerProps} class=\"ori-dialog__close\" aria-label=\"Close\">×\u003C\u002Fbutton>\n",[397,782,784],{"class":399,"line":783},23,[397,785,786],{},"        \u003C\u002Fheader>\n",[397,788,790],{"class":399,"line":789},24,[397,791,792],{},"        \u003Cdiv class=\"ori-dialog__body\">\n",[397,794,796],{"class":399,"line":795},25,[397,797,798],{},"            \u003Cp>This modal traps focus and closes on Escape or a backdrop click.\u003C\u002Fp>\n",[397,800,802],{"class":399,"line":801},26,[397,803,804],{},"        \u003C\u002Fdiv>\n",[397,806,808],{"class":399,"line":807},27,[397,809,810],{},"    \u003C\u002Fdiv>\n",[397,812,814],{"class":399,"line":813},28,[397,815,816],{},"\u003C\u002Fdialog>\n",[323,818,820],{"id":819},"non-modal","Non-modal",[246,822,823,824,827,828,831,832,835,836,838,839,842],{},"Set ",[255,825,826],{},"modal"," to ",[255,829,830],{},"false"," for a non-modal dialog (opened with ",[255,833,834],{},"show()"," instead of ",[255,837,270],{}," — no scroll\nlock, no focus trap, no ",[255,840,841],{},"::backdrop",", no click-outside dismiss).",[381,844,845,847,910],{},[384,846],{},[387,848,849],{"v-slot:vue":353},[345,850,852],{"className":391,"code":851,"language":393,"meta":353,"style":353},"\u003COriDialog title=\"Non-modal hint\" :modal=\"false\">\n    \u003Ctemplate #trigger=\"{ props }\">\n        \u003COriButton v-bind=\"props\" text=\"Open non-modal\" variant=\"outline\" \u002F>\n    \u003C\u002Ftemplate>\n    \u003Cp>Page is still scrollable and click-outside does not close this dialog.\u003C\u002Fp>\n\u003C\u002FOriDialog>\n",[255,853,854,884,888,893,897,902],{"__ignoreMap":353},[397,855,856,858,860,862,864,867,870,872,874,877,880,882],{"class":399,"line":400},[397,857,404],{"class":403},[397,859,274],{"class":407},[397,861,411],{"class":410},[397,863,414],{"class":403},[397,865,866],{"class":417},"\"Non-modal hint\"",[397,868,869],{"class":403}," :",[397,871,826],{"class":410},[397,873,414],{"class":403},[397,875,876],{"class":417},"\"",[397,878,830],{"class":879},"sj4cs",[397,881,876],{"class":417},[397,883,421],{"class":403},[397,885,886],{"class":399,"line":424},[397,887,427],{"class":403},[397,889,890],{"class":399,"line":430},[397,891,892],{"class":403},"        \u003COriButton v-bind=\"props\" text=\"Open non-modal\" variant=\"outline\" \u002F>\n",[397,894,895],{"class":399,"line":436},[397,896,439],{"class":403},[397,898,899],{"class":399,"line":442},[397,900,901],{"class":403},"    \u003Cp>Page is still scrollable and click-outside does not close this dialog.\u003C\u002Fp>\n",[397,903,904,906,908],{"class":399,"line":448},[397,905,451],{"class":403},[397,907,274],{"class":407},[397,909,421],{"class":403},[387,911,912],{"v-slot:html":353},[345,913,915],{"className":460,"code":914,"language":462,"meta":353,"style":353},"\u003C!-- Structure only — open with dialog.show() for non-modal. -->\n\u003Cdialog class=\"ori-dialog\" aria-modal=\"false\" aria-labelledby=\"dlg-title\">\n    \u003C!-- content -->\n\u003C\u002Fdialog>\n",[255,916,917,922,950,955],{"__ignoreMap":353},[397,918,919],{"class":399,"line":400},[397,920,921],{"class":469},"\u003C!-- Structure only — open with dialog.show() for non-modal. -->\n",[397,923,924,926,928,930,932,934,937,939,942,944,946,948],{"class":399,"line":424},[397,925,404],{"class":403},[397,927,244],{"class":407},[397,929,479],{"class":410},[397,931,414],{"class":403},[397,933,484],{"class":417},[397,935,936],{"class":410}," aria-modal",[397,938,414],{"class":403},[397,940,941],{"class":417},"\"false\"",[397,943,487],{"class":410},[397,945,414],{"class":403},[397,947,492],{"class":417},[397,949,421],{"class":403},[397,951,952],{"class":399,"line":430},[397,953,954],{"class":469},"    \u003C!-- content -->\n",[397,956,957,959,961],{"class":399,"line":436},[397,958,451],{"class":403},[397,960,244],{"class":407},[397,962,421],{"class":403},[323,964,966],{"id":965},"initially-open","Initially open",[246,968,969,970,973],{},"Pass ",[255,971,972],{},"defaultOpen"," to open the dialog on first mount — useful for confirmation prompts that appear on\npage load.",[381,975,976,978,1039],{},[384,977],{},[387,979,980],{"v-slot:vue":353},[345,981,983],{"className":391,"code":982,"language":393,"meta":353,"style":353},"\u003COriDialog title=\"Welcome back\" :defaultOpen=\"true\">\n    \u003Ctemplate #trigger=\"{ props }\">\n        \u003COriButton v-bind=\"props\" text=\"Re-open\" variant=\"tonal\" \u002F>\n    \u003C\u002Ftemplate>\n    \u003Cp>This dialog was open on first render.\u003C\u002Fp>\n\u003C\u002FOriDialog>\n",[255,984,985,1013,1017,1022,1026,1031],{"__ignoreMap":353},[397,986,987,989,991,993,995,998,1000,1002,1004,1006,1009,1011],{"class":399,"line":400},[397,988,404],{"class":403},[397,990,274],{"class":407},[397,992,411],{"class":410},[397,994,414],{"class":403},[397,996,997],{"class":417},"\"Welcome back\"",[397,999,869],{"class":403},[397,1001,972],{"class":410},[397,1003,414],{"class":403},[397,1005,876],{"class":417},[397,1007,1008],{"class":879},"true",[397,1010,876],{"class":417},[397,1012,421],{"class":403},[397,1014,1015],{"class":399,"line":424},[397,1016,427],{"class":403},[397,1018,1019],{"class":399,"line":430},[397,1020,1021],{"class":403},"        \u003COriButton v-bind=\"props\" text=\"Re-open\" variant=\"tonal\" \u002F>\n",[397,1023,1024],{"class":399,"line":436},[397,1025,439],{"class":403},[397,1027,1028],{"class":399,"line":442},[397,1029,1030],{"class":403},"    \u003Cp>This dialog was open on first render.\u003C\u002Fp>\n",[397,1032,1033,1035,1037],{"class":399,"line":448},[397,1034,451],{"class":403},[397,1036,274],{"class":407},[397,1038,421],{"class":403},[387,1040,1041],{"v-slot:html":353},[345,1042,1044],{"className":460,"code":1043,"language":462,"meta":353,"style":353},"\u003C!-- Structure only — call dialog.showModal() on mount to open it. -->\n\u003Cdialog class=\"ori-dialog\" aria-labelledby=\"dlg-title\" open>\n    \u003C!-- content -->\n\u003C\u002Fdialog>\n",[255,1045,1046,1051,1074,1078],{"__ignoreMap":353},[397,1047,1048],{"class":399,"line":400},[397,1049,1050],{"class":469},"\u003C!-- Structure only — call dialog.showModal() on mount to open it. -->\n",[397,1052,1053,1055,1057,1059,1061,1063,1065,1067,1069,1072],{"class":399,"line":424},[397,1054,404],{"class":403},[397,1056,244],{"class":407},[397,1058,479],{"class":410},[397,1060,414],{"class":403},[397,1062,484],{"class":417},[397,1064,487],{"class":410},[397,1066,414],{"class":403},[397,1068,492],{"class":417},[397,1070,1071],{"class":410}," open",[397,1073,421],{"class":403},[397,1075,1076],{"class":399,"line":430},[397,1077,954],{"class":469},[397,1079,1080,1082,1084],{"class":399,"line":436},[397,1081,451],{"class":403},[397,1083,244],{"class":407},[397,1085,421],{"class":403},[323,1087,1089],{"id":1088},"controlled-open","Controlled open",[246,1091,1092,1093,1096,1097,1100,1101,1104,1105,1108,1109,1111,1112,1115],{},"Bind ",[255,1094,1095],{},"v-model:open"," to drive the dialog from your own state — a confirmation prompt opened by a host\naction, with no ",[255,1098,1099],{},"#trigger"," slot. The dialog still emits ",[255,1102,1103],{},"update:open"," (keeping ",[255,1106,1107],{},"v-model"," in sync when\nthe user closes via ",[255,1110,266],{},", the backdrop, or the × button) and ",[255,1113,1114],{},"close"," for one-shot reactions.",[345,1117,1119],{"className":391,"code":1118,"language":393,"meta":353,"style":353},"\u003Cscript setup lang=\"ts\">\nimport { ref } from 'vue';\nimport { OriButton, OriDialog } from '@oriui\u002Fvue';\n\nconst open = ref(false);\n\nfunction onConfirm() {\n    \u002F\u002F …run the destructive action…\n    open.value = false;\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n    \u003COriButton text=\"Delete account\" color=\"danger\" variant=\"tonal\" @click=\"open = true\" \u002F>\n\n    \u003COriDialog v-model:open=\"open\" title=\"Delete account?\">\n        \u003Cp>This permanently deletes your account. This cannot be undone.\u003C\u002Fp>\n        \u003Cdiv style=\"display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem\">\n            \u003COriButton text=\"Cancel\" variant=\"text\" @click=\"open = false\" \u002F>\n            \u003COriButton text=\"Yes, delete\" color=\"danger\" @click=\"onConfirm\" \u002F>\n        \u003C\u002Fdiv>\n    \u003C\u002FOriDialog>\n\u003C\u002Ftemplate>\n",[255,1120,1121,1141,1159,1173,1177,1198,1202,1213,1218,1230,1235,1243,1247,1255,1297,1301,1324,1337,1353,1382,1410,1418,1426],{"__ignoreMap":353},[397,1122,1123,1125,1128,1131,1134,1136,1139],{"class":399,"line":400},[397,1124,404],{"class":403},[397,1126,1127],{"class":407},"script",[397,1129,1130],{"class":410}," setup",[397,1132,1133],{"class":410}," lang",[397,1135,414],{"class":403},[397,1137,1138],{"class":417},"\"ts\"",[397,1140,421],{"class":403},[397,1142,1143,1147,1150,1153,1156],{"class":399,"line":424},[397,1144,1146],{"class":1145},"szBVR","import",[397,1148,1149],{"class":403}," { ref } ",[397,1151,1152],{"class":1145},"from",[397,1154,1155],{"class":417}," 'vue'",[397,1157,1158],{"class":403},";\n",[397,1160,1161,1163,1166,1168,1171],{"class":399,"line":430},[397,1162,1146],{"class":1145},[397,1164,1165],{"class":403}," { OriButton, OriDialog } ",[397,1167,1152],{"class":1145},[397,1169,1170],{"class":417}," '@oriui\u002Fvue'",[397,1172,1158],{"class":403},[397,1174,1175],{"class":399,"line":436},[397,1176,678],{"emptyLinePlaceholder":677},[397,1178,1179,1182,1184,1187,1190,1193,1195],{"class":399,"line":442},[397,1180,1181],{"class":1145},"const",[397,1183,1071],{"class":879},[397,1185,1186],{"class":1145}," =",[397,1188,1189],{"class":410}," ref",[397,1191,1192],{"class":403},"(",[397,1194,830],{"class":879},[397,1196,1197],{"class":403},");\n",[397,1199,1200],{"class":399,"line":448},[397,1201,678],{"emptyLinePlaceholder":677},[397,1203,1204,1207,1210],{"class":399,"line":588},[397,1205,1206],{"class":1145},"function",[397,1208,1209],{"class":410}," onConfirm",[397,1211,1212],{"class":403},"() {\n",[397,1214,1215],{"class":399,"line":598},[397,1216,1217],{"class":469},"    \u002F\u002F …run the destructive action…\n",[397,1219,1220,1223,1225,1228],{"class":399,"line":614},[397,1221,1222],{"class":403},"    open.value ",[397,1224,414],{"class":1145},[397,1226,1227],{"class":879}," false",[397,1229,1158],{"class":403},[397,1231,1232],{"class":399,"line":628},[397,1233,1234],{"class":403},"}\n",[397,1236,1237,1239,1241],{"class":399,"line":637},[397,1238,451],{"class":403},[397,1240,1127],{"class":407},[397,1242,421],{"class":403},[397,1244,1245],{"class":399,"line":647},[397,1246,678],{"emptyLinePlaceholder":677},[397,1248,1249,1251,1253],{"class":399,"line":725},[397,1250,404],{"class":403},[397,1252,387],{"class":407},[397,1254,421],{"class":403},[397,1256,1257,1259,1262,1265,1267,1270,1273,1275,1278,1281,1283,1286,1289,1291,1294],{"class":399,"line":731},[397,1258,499],{"class":403},[397,1260,1261],{"class":407},"OriButton",[397,1263,1264],{"class":410}," text",[397,1266,414],{"class":403},[397,1268,1269],{"class":417},"\"Delete account\"",[397,1271,1272],{"class":410}," color",[397,1274,414],{"class":403},[397,1276,1277],{"class":417},"\"danger\"",[397,1279,1280],{"class":410}," variant",[397,1282,414],{"class":403},[397,1284,1285],{"class":417},"\"tonal\"",[397,1287,1288],{"class":410}," @click",[397,1290,414],{"class":403},[397,1292,1293],{"class":417},"\"open = true\"",[397,1295,1296],{"class":403}," \u002F>\n",[397,1298,1299],{"class":399,"line":737},[397,1300,678],{"emptyLinePlaceholder":677},[397,1302,1303,1305,1307,1310,1312,1315,1317,1319,1322],{"class":399,"line":742},[397,1304,499],{"class":403},[397,1306,274],{"class":407},[397,1308,1309],{"class":410}," v-model:open",[397,1311,414],{"class":403},[397,1313,1314],{"class":417},"\"open\"",[397,1316,411],{"class":410},[397,1318,414],{"class":403},[397,1320,1321],{"class":417},"\"Delete account?\"",[397,1323,421],{"class":403},[397,1325,1326,1328,1330,1333,1335],{"class":399,"line":748},[397,1327,516],{"class":403},[397,1329,246],{"class":407},[397,1331,1332],{"class":403},">This permanently deletes your account. This cannot be undone.\u003C\u002F",[397,1334,246],{"class":407},[397,1336,421],{"class":403},[397,1338,1339,1341,1343,1346,1348,1351],{"class":399,"line":753},[397,1340,516],{"class":403},[397,1342,502],{"class":407},[397,1344,1345],{"class":410}," style",[397,1347,414],{"class":403},[397,1349,1350],{"class":417},"\"display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem\"",[397,1352,421],{"class":403},[397,1354,1355,1357,1359,1361,1363,1366,1368,1370,1373,1375,1377,1380],{"class":399,"line":759},[397,1356,533],{"class":403},[397,1358,1261],{"class":407},[397,1360,1264],{"class":410},[397,1362,414],{"class":403},[397,1364,1365],{"class":417},"\"Cancel\"",[397,1367,1280],{"class":410},[397,1369,414],{"class":403},[397,1371,1372],{"class":417},"\"text\"",[397,1374,1288],{"class":410},[397,1376,414],{"class":403},[397,1378,1379],{"class":417},"\"open = false\"",[397,1381,1296],{"class":403},[397,1383,1384,1386,1388,1390,1392,1395,1397,1399,1401,1403,1405,1408],{"class":399,"line":765},[397,1385,533],{"class":403},[397,1387,1261],{"class":407},[397,1389,1264],{"class":410},[397,1391,414],{"class":403},[397,1393,1394],{"class":417},"\"Yes, delete\"",[397,1396,1272],{"class":410},[397,1398,414],{"class":403},[397,1400,1277],{"class":417},[397,1402,1288],{"class":410},[397,1404,414],{"class":403},[397,1406,1407],{"class":417},"\"onConfirm\"",[397,1409,1296],{"class":403},[397,1411,1412,1414,1416],{"class":399,"line":771},[397,1413,591],{"class":403},[397,1415,502],{"class":407},[397,1417,421],{"class":403},[397,1419,1420,1422,1424],{"class":399,"line":777},[397,1421,640],{"class":403},[397,1423,274],{"class":407},[397,1425,421],{"class":403},[397,1427,1428,1430,1432],{"class":399,"line":783},[397,1429,451],{"class":403},[397,1431,387],{"class":407},[397,1433,421],{"class":403},[246,1435,1436,1437,1439,1440,1442,1443,1445],{},"Reach for the uncontrolled form (",[255,1438,972],{}," + the ",[255,1441,1099],{}," slot, above) when the dialog owns a\nsingle self-contained flow; reach for ",[255,1444,1095],{}," when a host already holds the state — a store, a\nroute guard, or a shared \"unsaved changes?\" prompt.",[323,1447,1449],{"id":1448},"custom-title-via-slot","Custom title via slot",[246,1451,1452,1453,1456,1457,1460],{},"Omit the ",[255,1454,1455],{},"title"," prop and supply markup in the ",[255,1458,1459],{},"#title"," slot when you need rich heading content.",[381,1462,1463,1465,1520],{},[384,1464],{},[387,1466,1467],{"v-slot:vue":353},[345,1468,1470],{"className":391,"code":1469,"language":393,"meta":353,"style":353},"\u003COriDialog>\n    \u003Ctemplate #trigger=\"{ props }\">\n        \u003COriButton v-bind=\"props\" text=\"Rich title\" variant=\"tonal\" color=\"info\" \u002F>\n    \u003C\u002Ftemplate>\n    \u003Ctemplate #title>\n        \u003Cspan>Delete \u003Cstrong>project-x\u003C\u002Fstrong>?\u003C\u002Fspan>\n    \u003C\u002Ftemplate>\n    \u003Cp>This action is permanent and cannot be undone.\u003C\u002Fp>\n\u003C\u002FOriDialog>\n",[255,1471,1472,1480,1484,1489,1493,1498,1503,1507,1512],{"__ignoreMap":353},[397,1473,1474,1476,1478],{"class":399,"line":400},[397,1475,404],{"class":403},[397,1477,274],{"class":407},[397,1479,421],{"class":403},[397,1481,1482],{"class":399,"line":424},[397,1483,427],{"class":403},[397,1485,1486],{"class":399,"line":430},[397,1487,1488],{"class":403},"        \u003COriButton v-bind=\"props\" text=\"Rich title\" variant=\"tonal\" color=\"info\" \u002F>\n",[397,1490,1491],{"class":399,"line":436},[397,1492,439],{"class":403},[397,1494,1495],{"class":399,"line":442},[397,1496,1497],{"class":403},"    \u003Ctemplate #title>\n",[397,1499,1500],{"class":399,"line":448},[397,1501,1502],{"class":403},"        \u003Cspan>Delete \u003Cstrong>project-x\u003C\u002Fstrong>?\u003C\u002Fspan>\n",[397,1504,1505],{"class":399,"line":588},[397,1506,439],{"class":403},[397,1508,1509],{"class":399,"line":598},[397,1510,1511],{"class":403},"    \u003Cp>This action is permanent and cannot be undone.\u003C\u002Fp>\n",[397,1513,1514,1516,1518],{"class":399,"line":614},[397,1515,451],{"class":403},[397,1517,274],{"class":407},[397,1519,421],{"class":403},[387,1521,1522],{"v-slot:html":353},[345,1523,1525],{"className":460,"code":1524,"language":462,"meta":353,"style":353},"\u003C!-- Structure only — not functional on its own. -->\n\u003Ch2 id=\"dlg-title\" class=\"ori-dialog__title\">Delete \u003Cstrong>project-x\u003C\u002Fstrong>?\u003C\u002Fh2>\n",[255,1526,1527,1532],{"__ignoreMap":353},[397,1528,1529],{"class":399,"line":400},[397,1530,1531],{"class":469},"\u003C!-- Structure only — not functional on its own. -->\n",[397,1533,1534,1536,1538,1540,1542,1544,1546,1548,1550,1553,1555,1558,1560,1563,1565],{"class":399,"line":424},[397,1535,404],{"class":403},[397,1537,323],{"class":407},[397,1539,538],{"class":410},[397,1541,414],{"class":403},[397,1543,492],{"class":417},[397,1545,479],{"class":410},[397,1547,414],{"class":403},[397,1549,549],{"class":417},[397,1551,1552],{"class":403},">Delete \u003C",[397,1554,250],{"class":407},[397,1556,1557],{"class":403},">project-x\u003C\u002F",[397,1559,250],{"class":407},[397,1561,1562],{"class":403},">?\u003C\u002F",[397,1564,323],{"class":407},[397,1566,421],{"class":403},[323,1568,1570],{"id":1569},"common-patterns","Common patterns",[246,1572,1573],{},"A confirm \u002F cancel pair inside a dialog, wired to an async action.",[381,1575,1576,1578,1649],{},[384,1577],{},[387,1579,1580],{"v-slot:vue":353},[345,1581,1583],{"className":391,"code":1582,"language":393,"meta":353,"style":353},"\u003COriDialog title=\"Delete account?\">\n    \u003Ctemplate #trigger=\"{ props }\">\n        \u003COriButton v-bind=\"props\" text=\"Delete account\" variant=\"tonal\" color=\"danger\" \u002F>\n    \u003C\u002Ftemplate>\n    \u003Cp>This will permanently delete your account and all its data. This cannot be undone.\u003C\u002Fp>\n    \u003Cdiv style=\"display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem\">\n        \u003C!-- Close via the adapter's close mechanism or a custom event -->\n        \u003COriButton text=\"Cancel\" variant=\"text\" \u002F>\n        \u003COriButton text=\"Yes, delete\" color=\"danger\" variant=\"fill\" \u002F>\n    \u003C\u002Fdiv>\n\u003C\u002FOriDialog>\n",[255,1584,1585,1599,1603,1608,1612,1617,1622,1627,1632,1637,1641],{"__ignoreMap":353},[397,1586,1587,1589,1591,1593,1595,1597],{"class":399,"line":400},[397,1588,404],{"class":403},[397,1590,274],{"class":407},[397,1592,411],{"class":410},[397,1594,414],{"class":403},[397,1596,1321],{"class":417},[397,1598,421],{"class":403},[397,1600,1601],{"class":399,"line":424},[397,1602,427],{"class":403},[397,1604,1605],{"class":399,"line":430},[397,1606,1607],{"class":403},"        \u003COriButton v-bind=\"props\" text=\"Delete account\" variant=\"tonal\" color=\"danger\" \u002F>\n",[397,1609,1610],{"class":399,"line":436},[397,1611,439],{"class":403},[397,1613,1614],{"class":399,"line":442},[397,1615,1616],{"class":403},"    \u003Cp>This will permanently delete your account and all its data. This cannot be undone.\u003C\u002Fp>\n",[397,1618,1619],{"class":399,"line":448},[397,1620,1621],{"class":403},"    \u003Cdiv style=\"display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem\">\n",[397,1623,1624],{"class":399,"line":588},[397,1625,1626],{"class":403},"        \u003C!-- Close via the adapter's close mechanism or a custom event -->\n",[397,1628,1629],{"class":399,"line":598},[397,1630,1631],{"class":403},"        \u003COriButton text=\"Cancel\" variant=\"text\" \u002F>\n",[397,1633,1634],{"class":399,"line":614},[397,1635,1636],{"class":403},"        \u003COriButton text=\"Yes, delete\" color=\"danger\" variant=\"fill\" \u002F>\n",[397,1638,1639],{"class":399,"line":628},[397,1640,810],{"class":403},[397,1642,1643,1645,1647],{"class":399,"line":637},[397,1644,451],{"class":403},[397,1646,274],{"class":407},[397,1648,421],{"class":403},[387,1650,1651],{"v-slot:html":353},[345,1652,1654],{"className":460,"code":1653,"language":462,"meta":353,"style":353},"\u003C!-- Structure only — not functional on its own. -->\n\u003Cdialog class=\"ori-dialog\" aria-labelledby=\"dlg-title\">\n    \u003Cdiv class=\"ori-dialog__content\">\n        \u003Cheader class=\"ori-dialog__header\">\n            \u003Ch2 id=\"dlg-title\" class=\"ori-dialog__title\">Delete account?\u003C\u002Fh2>\n            \u003Cbutton class=\"ori-dialog__close\" aria-label=\"Close\">×\u003C\u002Fbutton>\n        \u003C\u002Fheader>\n        \u003Cdiv class=\"ori-dialog__body\">\n            \u003Cp>This will permanently delete your account and all its data.\u003C\u002Fp>\n            \u003Cdiv style=\"display:flex; justify-content:flex-end; gap:.5rem; margin-top:1rem\">\n                \u003Cbutton class=\"ori-button ori-variant_text\">Cancel\u003C\u002Fbutton>\n                \u003Cbutton class=\"ori-button ori-variant_fill ori-color_danger\">Yes, delete\u003C\u002Fbutton>\n            \u003C\u002Fdiv>\n        \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n\u003C\u002Fdialog>\n",[255,1655,1656,1660,1680,1694,1708,1733,1757,1765,1779,1792,1807,1828,1848,1857,1865,1873],{"__ignoreMap":353},[397,1657,1658],{"class":399,"line":400},[397,1659,1531],{"class":469},[397,1661,1662,1664,1666,1668,1670,1672,1674,1676,1678],{"class":399,"line":424},[397,1663,404],{"class":403},[397,1665,244],{"class":407},[397,1667,479],{"class":410},[397,1669,414],{"class":403},[397,1671,484],{"class":417},[397,1673,487],{"class":410},[397,1675,414],{"class":403},[397,1677,492],{"class":417},[397,1679,421],{"class":403},[397,1681,1682,1684,1686,1688,1690,1692],{"class":399,"line":430},[397,1683,499],{"class":403},[397,1685,502],{"class":407},[397,1687,479],{"class":410},[397,1689,414],{"class":403},[397,1691,509],{"class":417},[397,1693,421],{"class":403},[397,1695,1696,1698,1700,1702,1704,1706],{"class":399,"line":436},[397,1697,516],{"class":403},[397,1699,519],{"class":407},[397,1701,479],{"class":410},[397,1703,414],{"class":403},[397,1705,526],{"class":417},[397,1707,421],{"class":403},[397,1709,1710,1712,1714,1716,1718,1720,1722,1724,1726,1729,1731],{"class":399,"line":442},[397,1711,533],{"class":403},[397,1713,323],{"class":407},[397,1715,538],{"class":410},[397,1717,414],{"class":403},[397,1719,492],{"class":417},[397,1721,479],{"class":410},[397,1723,414],{"class":403},[397,1725,549],{"class":417},[397,1727,1728],{"class":403},">Delete account?\u003C\u002F",[397,1730,323],{"class":407},[397,1732,421],{"class":403},[397,1734,1735,1737,1739,1741,1743,1745,1747,1749,1751,1753,1755],{"class":399,"line":448},[397,1736,533],{"class":403},[397,1738,563],{"class":407},[397,1740,479],{"class":410},[397,1742,414],{"class":403},[397,1744,570],{"class":417},[397,1746,573],{"class":410},[397,1748,414],{"class":403},[397,1750,578],{"class":417},[397,1752,581],{"class":403},[397,1754,563],{"class":407},[397,1756,421],{"class":403},[397,1758,1759,1761,1763],{"class":399,"line":588},[397,1760,591],{"class":403},[397,1762,519],{"class":407},[397,1764,421],{"class":403},[397,1766,1767,1769,1771,1773,1775,1777],{"class":399,"line":598},[397,1768,516],{"class":403},[397,1770,502],{"class":407},[397,1772,479],{"class":410},[397,1774,414],{"class":403},[397,1776,609],{"class":417},[397,1778,421],{"class":403},[397,1780,1781,1783,1785,1788,1790],{"class":399,"line":614},[397,1782,533],{"class":403},[397,1784,246],{"class":407},[397,1786,1787],{"class":403},">This will permanently delete your account and all its data.\u003C\u002F",[397,1789,246],{"class":407},[397,1791,421],{"class":403},[397,1793,1794,1796,1798,1800,1802,1805],{"class":399,"line":628},[397,1795,533],{"class":403},[397,1797,502],{"class":407},[397,1799,1345],{"class":410},[397,1801,414],{"class":403},[397,1803,1804],{"class":417},"\"display:flex; justify-content:flex-end; gap:.5rem; margin-top:1rem\"",[397,1806,421],{"class":403},[397,1808,1809,1812,1814,1816,1818,1821,1824,1826],{"class":399,"line":637},[397,1810,1811],{"class":403},"                \u003C",[397,1813,563],{"class":407},[397,1815,479],{"class":410},[397,1817,414],{"class":403},[397,1819,1820],{"class":417},"\"ori-button ori-variant_text\"",[397,1822,1823],{"class":403},">Cancel\u003C\u002F",[397,1825,563],{"class":407},[397,1827,421],{"class":403},[397,1829,1830,1832,1834,1836,1838,1841,1844,1846],{"class":399,"line":647},[397,1831,1811],{"class":403},[397,1833,563],{"class":407},[397,1835,479],{"class":410},[397,1837,414],{"class":403},[397,1839,1840],{"class":417},"\"ori-button ori-variant_fill ori-color_danger\"",[397,1842,1843],{"class":403},">Yes, delete\u003C\u002F",[397,1845,563],{"class":407},[397,1847,421],{"class":403},[397,1849,1850,1853,1855],{"class":399,"line":725},[397,1851,1852],{"class":403},"            \u003C\u002F",[397,1854,502],{"class":407},[397,1856,421],{"class":403},[397,1858,1859,1861,1863],{"class":399,"line":731},[397,1860,591],{"class":403},[397,1862,502],{"class":407},[397,1864,421],{"class":403},[397,1866,1867,1869,1871],{"class":399,"line":737},[397,1868,640],{"class":403},[397,1870,502],{"class":407},[397,1872,421],{"class":403},[397,1874,1875,1877,1879],{"class":399,"line":742},[397,1876,451],{"class":403},[397,1878,244],{"class":407},[397,1880,421],{"class":403},[323,1882,210],{"id":1883},"accessibility",[246,1885,1886,1887,1889,1890,1892],{},"The accessibility contract holds across both layers — the classes and the Vue component render the\nsame attributes. The interactive behaviour, however, must be driven by JavaScript: a static HTML\n",[255,1888,257],{}," is markup only until ",[255,1891,270],{}," opens it.",[1894,1895,1896,1914,1920,1936],"ul",{},[1897,1898,356,1899,1901,1902,1905,1906,1909,1910,1913],"li",{},[255,1900,257],{}," is ",[255,1903,1904],{},"role=\"dialog\"",", ",[255,1907,1908],{},"aria-modal=\"true\""," (modal mode), and labelled by the title\nelement via ",[255,1911,1912],{},"aria-labelledby",".",[1897,1915,1916,1917,1913],{},"The close button has ",[255,1918,1919],{},"aria-label=\"Close\"",[1897,1921,356,1922,1924,1925,1928,1929,1932,1933,1913],{},[255,1923,1099],{}," slot's ",[255,1926,1927],{},"props"," object includes the ",[255,1930,1931],{},"aria-*"," attributes for the trigger element; bind\nthem with ",[255,1934,1935],{},"v-bind=\"props\"",[1897,1937,1938,1940,1941,1943],{},[255,1939,270],{}," provides the live behaviour — focus trap, scroll lock, ",[255,1942,841],{},", and returning focus\nto the trigger on close — straight from the platform.",[1945,1946,1947,1960],"table",{},[1948,1949,1950],"thead",{},[1951,1952,1953,1957],"tr",{},[1954,1955,1956],"th",{},"Key",[1954,1958,1959],{},"Action",[1961,1962,1963,1977,1987],"tbody",{},[1951,1964,1965,1971],{},[1966,1967,1968],"td",{},[255,1969,1970],{},"Escape",[1966,1972,1973,1974,1976],{},"Closes the dialog and returns focus to the trigger (native ",[255,1975,257],{},").",[1951,1978,1979,1984],{},[1966,1980,1981],{},[255,1982,1983],{},"Tab",[1966,1985,1986],{},"Cycles focus among interactive elements inside the dialog (focus trap).",[1951,1988,1989,1994],{},[1966,1990,1991],{},[255,1992,1993],{},"Shift+Tab",[1966,1995,1996],{},"Cycles focus backwards inside the dialog.",[323,1998,298],{"id":1999},"framework-api",[246,2001,2002,2003,2005,2006,2008],{},"The props, events, slots, and headless wiring of the ",[250,2004,312],{}," component. The standalone CSS layer has\nno component API — its surface is the ",[284,2007,325],{"href":286}," above, and the behaviour is yours to wire.\n(Svelte bindings are planned.)",[2010,2011,2012],"h3",{"id":1927},"Props",[1945,2014,2015,2031],{},[1948,2016,2017],{},[1951,2018,2019,2022,2025,2028],{},[1954,2020,2021],{},"Prop",[1954,2023,2024],{},"Type",[1954,2026,2027],{},"Default",[1954,2029,2030],{},"Description",[1961,2032,2033,2055,2075,2092,2117,2137],{},[1951,2034,2035,2040,2045,2049],{},[1966,2036,2037],{},[255,2038,2039],{},"closeOnEscape",[1966,2041,2042],{},[255,2043,2044],{},"boolean",[1966,2046,2047],{},[255,2048,1008],{},[1966,2050,2051,2052,2054],{},"Whether ",[255,2053,266],{}," closes the dialog.",[1951,2056,2057,2062,2066,2070],{},[1966,2058,2059],{},[255,2060,2061],{},"closeOnInteractOutside",[1966,2063,2064],{},[255,2065,2044],{},[1966,2067,2068],{},[255,2069,1008],{},[1966,2071,2072,2073,2054],{},"Whether a click on the ",[255,2074,841],{},[1951,2076,2077,2081,2085,2089],{},[1966,2078,2079],{},[255,2080,972],{},[1966,2082,2083],{},[255,2084,2044],{},[1966,2086,2087],{},[255,2088,830],{},[1966,2090,2091],{},"Whether the dialog is open on first mount.",[1951,2093,2094,2098,2102,2106],{},[1966,2095,2096],{},[255,2097,826],{},[1966,2099,2100],{},[255,2101,2044],{},[1966,2103,2104],{},[255,2105,1008],{},[1966,2107,2108,2109,2111,2112,2114,2115,1913],{},"Modal mode: ",[255,2110,270],{}," (trap + scroll lock + ",[255,2113,841],{},") vs ",[255,2116,834],{},[1951,2118,2119,2124,2128,2131],{},[1966,2120,2121],{},[255,2122,2123],{},"open",[1966,2125,2126],{},[255,2127,2044],{},[1966,2129,2130],{},"—",[1966,2132,2133,2134,2136],{},"Controlled open state for ",[255,2135,1095],{},". Omit for an uncontrolled dialog.",[1951,2138,2139,2143,2148,2150],{},[1966,2140,2141],{},[255,2142,1455],{},[1966,2144,2145],{},[255,2146,2147],{},"string",[1966,2149,2130],{},[1966,2151,2152,2153,2155],{},"Heading text. Overridden by the ",[255,2154,1459],{}," slot when provided.",[2010,2157,2159],{"id":2158},"events-attributes","Events & attributes",[1945,2161,2162,2174],{},[1948,2163,2164],{},[1951,2165,2166,2169,2172],{},[1954,2167,2168],{},"Event",[1954,2170,2171],{},"Payload",[1954,2173,2030],{},[1961,2175,2176,2191],{},[1951,2177,2178,2182,2186],{},[1966,2179,2180],{},[255,2181,1103],{},[1966,2183,2184],{},[255,2185,2044],{},[1966,2187,2188,2189,1913],{},"Fires on every open\u002Fclose transition — enables ",[255,2190,1095],{},[1951,2192,2193,2197,2199],{},[1966,2194,2195],{},[255,2196,1114],{},[1966,2198,2130],{},[1966,2200,2201,2202,2204],{},"Fires whenever the dialog closes (trigger, ",[255,2203,266],{},", backdrop, × button, or host).",[246,2206,1092,2207,2209,2210,2213,2214,2216,2217,2219,2220,2222,2223,2225,2226,2228,2229,2231,2232,2234],{},[255,2208,1095],{}," to control the dialog from a host ref (see ",[284,2211,1089],{"href":2212},"#controlled-open",").\nBoth events fire in the uncontrolled (",[255,2215,972],{}," + ",[255,2218,1099],{},") mode too, so a host can react to a\nclose without owning the state. The ",[255,2221,1099],{}," slot also exposes ",[255,2224,1927],{}," and ",[255,2227,2123],{}," — bind\n",[255,2230,1935],{}," on the trigger element; ",[255,2233,2123],{}," reflects the current state if you need it in the\ntemplate.",[246,2236,2237,2238,2241,2242,2244,2245,2248,2249,2252,2253,2255,2256,2258,2259,2261,2262,2265],{},"Controlled mode is ",[250,2239,2240],{},"optimistic",": a user-initiated close (",[255,2243,266],{},", the backdrop, or the × button)\nalways closes the dialog and ",[260,2246,2247],{},"then"," emits — treat ",[255,2250,2251],{},"update:open(false)"," \u002F ",[255,2254,1114],{}," as authoritative and\nmirror them into your state. The dialog can't be held open by ignoring the event (a native ",[255,2257,257],{},"\ncloses on ",[255,2260,266],{}," regardless — set ",[255,2263,2264],{},":closeOnEscape=\"false\""," to disable that one path).",[246,2267,2268,2270,2271,2273,2274,2277,2278,2280,2281,2284,2285,2288,2289,1924,2291,2293],{},[255,2269,274],{}," renders a fragment (the ",[255,2272,1099],{}," slot ",[260,2275,2276],{},"plus"," the ",[255,2279,257],{},"), so stray attributes placed\ndirectly on ",[255,2282,2283],{},"\u003COriDialog>"," are ",[250,2286,2287],{},"not"," auto-inherited onto a single root — put attributes meant for the\ntrigger on the trigger element via the ",[255,2290,1099],{},[255,2292,1927],{}," instead.",[2010,2295,2297],{"id":2296},"slots","Slots",[1945,2299,2300,2312],{},[1948,2301,2302],{},[1951,2303,2304,2307,2310],{},[1954,2305,2306],{},"Slot",[1954,2308,2309],{},"Scope",[1954,2311,2030],{},[1961,2313,2314,2333,2347],{},[1951,2315,2316,2321,2326],{},[1966,2317,2318],{},[255,2319,2320],{},"trigger",[1966,2322,2323],{},[255,2324,2325],{},"{ props: object, open: boolean }",[1966,2327,2328,2329,2332],{},"The control that opens the dialog. Bind ",[255,2330,2331],{},":props"," on your trigger element.",[1951,2334,2335,2339,2341],{},[1966,2336,2337],{},[255,2338,1455],{},[1966,2340,2130],{},[1966,2342,2343,2344,2346],{},"Replaces the heading text; receives no scope. Falls back to the ",[255,2345,1455],{}," prop when omitted.",[1951,2348,2349,2354,2356],{},[1966,2350,2351],{},[255,2352,2353],{},"default",[1966,2355,2130],{},[1966,2357,2358,2359,1913],{},"Body content rendered inside ",[255,2360,2361],{},".ori-dialog__body",[2010,2363,2365],{"id":2364},"headless-adapter","Headless & adapter",[246,2367,2368,2370,2371,2376,2377,2380,2381,2383,2384,2386,2387,2389,2390,1913],{},[255,2369,274],{}," calls ",[284,2372,2373],{"href":173},[255,2374,2375],{},"useDialog()"," from ",[255,2378,2379],{},"@oriui\u002Fheadless\u002Fvue",", which defaults to the native\n",[255,2382,257],{}," engine — the focus trap, scroll lock, ",[255,2385,266],{}," handling, ",[255,2388,841],{}," and focus-return are the\nplatform's job, so ",[250,2391,2392],{},"no adapter and no extra dependency are required",[246,2394,356,2395,2398],{},[255,2396,2397],{},"OriHeadless"," contract is still available as a hedge: register a custom engine (e.g. a Zag-backed\nadapter for a genuinely hard widget) only if a project needs one — the markup never changes.",[345,2400,2404],{"className":2401,"code":2402,"language":2403,"meta":353,"style":353},"language-ts shiki shiki-themes github-light github-dark","\u002F\u002F main.ts — optional; the native engine is used when nothing is registered.\nimport { createApp } from 'vue';\nimport { OriHeadless } from '@oriui\u002Fheadless\u002Fvue';\nimport { myDialog } from '.\u002Fheadless\u002Fmy-dialog'; \u002F\u002F optional custom adapter\n\nconst app = createApp(App);\napp.use(OriHeadless, { dialog: myDialog });\napp.mount('#app');\n","ts",[255,2405,2406,2411,2424,2438,2456,2460,2475,2486],{"__ignoreMap":353},[397,2407,2408],{"class":399,"line":400},[397,2409,2410],{"class":469},"\u002F\u002F main.ts — optional; the native engine is used when nothing is registered.\n",[397,2412,2413,2415,2418,2420,2422],{"class":399,"line":424},[397,2414,1146],{"class":1145},[397,2416,2417],{"class":403}," { createApp } ",[397,2419,1152],{"class":1145},[397,2421,1155],{"class":417},[397,2423,1158],{"class":403},[397,2425,2426,2428,2431,2433,2436],{"class":399,"line":430},[397,2427,1146],{"class":1145},[397,2429,2430],{"class":403}," { OriHeadless } ",[397,2432,1152],{"class":1145},[397,2434,2435],{"class":417}," '@oriui\u002Fheadless\u002Fvue'",[397,2437,1158],{"class":403},[397,2439,2440,2442,2445,2447,2450,2453],{"class":399,"line":436},[397,2441,1146],{"class":1145},[397,2443,2444],{"class":403}," { myDialog } ",[397,2446,1152],{"class":1145},[397,2448,2449],{"class":417}," '.\u002Fheadless\u002Fmy-dialog'",[397,2451,2452],{"class":403},"; ",[397,2454,2455],{"class":469},"\u002F\u002F optional custom adapter\n",[397,2457,2458],{"class":399,"line":442},[397,2459,678],{"emptyLinePlaceholder":677},[397,2461,2462,2464,2467,2469,2472],{"class":399,"line":448},[397,2463,1181],{"class":1145},[397,2465,2466],{"class":879}," app",[397,2468,1186],{"class":1145},[397,2470,2471],{"class":410}," createApp",[397,2473,2474],{"class":403},"(App);\n",[397,2476,2477,2480,2483],{"class":399,"line":588},[397,2478,2479],{"class":403},"app.",[397,2481,2482],{"class":410},"use",[397,2484,2485],{"class":403},"(OriHeadless, { dialog: myDialog });\n",[397,2487,2488,2490,2493,2495,2498],{"class":399,"line":598},[397,2489,2479],{"class":403},[397,2491,2492],{"class":410},"mount",[397,2494,1192],{"class":403},[397,2496,2497],{"class":417},"'#app'",[397,2499,1197],{"class":403},[246,2501,2502,2503,2505],{},"See ",[284,2504,174],{"href":173}," for the full control contract.",[2507,2508,2509],"style",{},"html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s9eBZ, html code.shiki .s9eBZ{--shiki-default:#22863A;--shiki-dark:#85E89D}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}",{"title":353,"searchDepth":424,"depth":424,"links":2511},[2512,2513,2514,2515,2516,2517,2518,2519,2520,2521],{"id":325,"depth":424,"text":326},{"id":339,"depth":424,"text":340},{"id":372,"depth":424,"text":373},{"id":819,"depth":424,"text":820},{"id":965,"depth":424,"text":966},{"id":1088,"depth":424,"text":1089},{"id":1448,"depth":424,"text":1449},{"id":1569,"depth":424,"text":1570},{"id":1883,"depth":424,"text":210},{"id":1999,"depth":424,"text":298,"children":2522},[2523,2524,2525,2526],{"id":1927,"depth":430,"text":2012},{"id":2158,"depth":430,"text":2159},{"id":2296,"depth":430,"text":2297},{"id":2364,"depth":430,"text":2365},"md",{},{"title":42,"description":43},"components\u002Fdialog","Aul5w4RMkBuRp4SXkJaxGx8DHY8mbGBiIKggslFp18U",1783874705306]