Component library
The Vue component library provides the shared UI language for Frappe applications. It gives application code stable components for data entry, navigation, page layout, and user feedback while keeping behavior, accessibility, and visual states consistent across screens.
Public API
The public API is organized around the package root and small component-family entry points. Application code should use the named exports from frappe-ui or a documented family subpath rather than depend on component internals.
Package entry point
The public root at src/index.ts is the reviewed surface for stable library use. It exports components by family and exposes the public prop, event, slot, and helper types that application code needs to use them safely. Component folders also keep local runtime exports beside their public types.
The root export includes setup helpers such as FrappeUIProvider, data access APIs, base controls, form controls, overlays, collection views, navigation shells such as DesktopShell and SidebarRail, and shared composables. It also exposes public types for input scales, selections, routes, and picker refs. TabButtons provides value selection, while the toast namespace and ToastProvider provide application feedback. LoadingIndicator remains a compatibility name for Spinner.
References: src/index.ts• L1-21 src/index.ts• L23-65 src/index.ts• L67-93 src/index.ts• L95-115 src/index.ts• L139-218 src/…/index.ts• L1-2 src/…/index.ts• L1-5
Stable and separate surfaces
The stable root is the default choice for application UI. The package also exposes separate subpaths for areas with a different release or adoption boundary, such as experimental modules and specialized editor, code editor, list, and chart packages. A component is not part of the stable root only because it exists in the source tree.
This boundary lets an application adopt a specialized or changing surface without treating it as a stable contract. ThemeSwitcher belongs to frappe-ui/experimental and is deprecated in favor of Select with useColorScheme.
| Import surface | Role |
|---|---|
frappe-ui | Stable components, public types, composables, directives, data access APIs, and selected utilities |
frappe-ui/experimental | UI whose API may still change, including the deprecated ThemeSwitcher |
frappe-ui/editor, frappe-ui/code-editor, frappe-ui/list, frappe-ui/charts | Specialized component families with their own entry points |
References: package.json• L71-129 src/index.ts• L95-137 experimental/…/index.ts• L1-2 experimental/…/ThemeSwitcher.vue• L82-85 src/…/index.ts• L1-20 src/…/index.ts• L1-17 src/…/index.ts• L1-22
Component families
The library groups components by the UI problem they solve. The child pages describe each group in more detail.
Input and selection controls
Input controls turn user intent into application state. They cover text and numeric entry, boolean and ranged values, single and multiple selection, dates and times, file upload, and the labels and messages that make those controls understandable. See Input controls.
Selection components share one mental model: a trigger exposes the current value, a panel presents choices, and slots let the application add content without taking ownership of selection rules. Select, MultiSelect, and Combobox expose separate models for the value, open state, and optional search query. DatePicker, DateRangePicker, DateTimePicker, and TimePicker use the same trigger and popover model. They share open, close, and focus ref behavior. Calendar panels are internal building blocks rather than extra stable-root exports.
The selection family uses options for grouped choices. Select handles one value, MultiSelect adds several values plus select-all and clear-all actions, and Combobox supports input and button trigger modes. Their rows use the shared ItemListRow shape, so prefixes, labels, descriptions, and suffixes compose in the same way. Search can stay local or be delegated to a server by setting filterable to false. Search and item slots add richer content without replacing selection state.
Date controls keep the displayed text, committed value, open state, and focused date distinct. A single date, a range, or a date-time is committed only after the control accepts the selection or typed input. Range pickers can show two calendar panes, and date-time pickers combine date selection with time selection in one task.
References: src/index.ts• L40-65 src/…/Combobox.vue• L63-105 src/…/Combobox.vue• L231-252 src/…/ComboboxResults.vue• L137-206 src/…/MultiSelect.vue• L54-90 src/…/Select.vue• L54-70 src/…/utils.ts• L5-20 src/…/utils.ts• L148-175 src/…/DatePicker.vue• L1-77 src/…/DateRangePicker.vue• L1-78 src/…/DateTimePicker.vue• L1-94 src/…/CalendarPanel.vue• L278-394 src/…/DateRangeCalendar.vue• L83-124 src/…/TimePicker.vue• L1-95
Overlays and navigation
Overlays temporarily place actions or information above the current page. Dialogs, popovers, menus, hover cards, sheets, tooltips, and toast surfaces provide shared dismissal, focus, and portal behavior. Navigation components connect page structure to routes and user movement through tabs, sidebars, rails, breadcrumbs, and mobile shells. See Overlays and navigation.
Triggers can be supplied by the application, while the overlay owns the interaction state around them. Dropdown and ContextMenu use one menu vocabulary for actions, switches, groups, and submenus. Menu rows and selection rows share the same list-row composition. Breadcrumbs preserve the difference between route links, plain links, and actions. When the trail does not fit, older crumbs move into a menu while the last two remain visible.
Navigation supports both router-aware and router-free use. SidebarItem, SidebarRailItem, MobileNavItem, tabs, and breadcrumbs use links when a destination exists and buttons when the interaction changes local state. Sidebar is a collapsible navigation landmark with application-supplied header, sections, rows, and footer. SidebarRail is an independent narrow icon column. It is not the collapsed form of Sidebar. Desktop navigation also carries a physical left or right side through DesktopShell, so tooltips and active indicators can face the page correctly.
Settings navigation uses the same tab model in a dialog. SettingsSidebar supplies the tab-list region, while SettingsNavItem supplies each tab trigger and leaves the selected value to the surrounding settings tabs.
References: src/index.ts• L67-93 src/index.ts• L104-115 src/…/MenuItemContent.vue• L126-202 src/…/Breadcrumbs.vue• L1-87 src/…/PageHeaderBackButton.vue• L1-26 src/…/navLink.ts• L11-44 src/…/navSide.ts• L1-10 src/…/SidebarItem.vue• L1-127 src/…/SidebarHeader.vue• L1-93 src/…/SidebarSection.vue• L1-81 src/…/SidebarCollapseToggle.vue• L1-23 src/…/SidebarRailItemBadge.vue• L1-67 src/…/SettingsNavItem.vue• L1-33 src/…/SettingsSidebar.vue• L1-16 src/…/MobileShell.md• L41-81 src/…/navLink.ts• L11-44
Layout and feedback
Layout components define the page frame and the main regions inside it. Feedback components show progress, loading, errors, status, alerts, and completion messages so the UI can explain what the application is doing. See Layout and feedback components.
The layout family is compositional. A shell provides page regions and scroll behavior, while the application supplies navigation, headers, and page content. Sidebar child parts add identity, groups, labels, rows, cards, and collapse controls without taking ownership of the page’s scroll region. SidebarCard is a compact promotional or status surface. Its dismiss event tells the parent to decide whether the card remains visible.
Feedback surfaces use content to choose the right presentation. Alert stays a row for a short message and becomes a banner when it has a description or more than one action. Progress reports continuous or interval progress and clamps its value to a valid range. LoadingText pairs a short loading label with a spinner. Divider can separate content or place an action across the separation. KeyboardShortcut presents a shortcut but does not register it. KeyboardShortcutsDialog collects registered shortcuts in a searchable dialog.
Global feedback uses a provider boundary. The toast host must subscribe before application content can publish early toast messages, and the dialog host renders the shared dialog surface. Toast placement follows page direction, and the provider passes that direction to the UI primitives when the application has not already supplied its own direction context.
References: src/index.ts• L23-38 src/index.ts• L82-104 src/…/Alert.vue• L22-45 src/…/SidebarCard.vue• L68-90 src/…/Progress.vue• L22-57 src/…/Divider.vue• L1-16 src/…/KeyboardShortcut.vue• L1-79 src/…/KeyboardShortcutsDialog.vue• L1-87 src/…/LoadingText.vue• L1-12 src/…/Dialog.vue• L1-48 src/…/ToastProvider.vue• L1-27 src/…/FrappeUIProvider.vue• L1-45 src/…/PageDirection.ts• L1-18
Stable composite molecules
Composite molecules combine a small set of controls around one user task. They keep a stable public contract while allowing application screens to supply their own rows, labels, icons, and page content. See Editor and list molecules and Code editor molecule. The Rich text editor molecule describes the editor surface in more detail.
Examples include the shared picker shell used by date controls, ItemListRow for compact collection entries, Tree for nested choices, and the coordinated Tabs and TabButtons families. These molecules are useful when an application needs a complete interaction pattern rather than a single visual primitive. The public root exports stable patterns, while specialized editor, code editor, and list families remain on their own package paths.
ItemListRow is the common row shell used by selection results and menu content. Its prefix, label, and suffix regions preserve a stable row shape while the parent owns highlighting or checked state. Tree uses a related row composition for nested data. The application owns node data and expanded keys, while the tree supplies hierarchy, focus movement, row slots, and optional drag-and-drop events. A full-row slot can replace the default row, while named row slots add content around its label without changing the tree contract. Unchanged rows do not need to redraw when another branch opens or closes.
The editor and list families provide larger molecules through dedicated imports. The editor family combines an editing surface with menus, drop zones, extension kits, commands, and media upload contracts. Loaded external content is separate from later user edits, so undo starts with the user’s changes after the load. The code editor is a focused editing surface with a live value and a committed blur change. The list family combines list semantics, rows, cells, grouped rows, headers, and sortable header cells. Selection, activation, navigation, and sorting remain coordinated with application state.
Tree molecule
Tree presents nested application data as a keyboard-accessible hierarchy. The application owns node data and the array of expanded node keys. The component supplies row composition, focus movement, and optional drag-and-drop events. Its row slots support a full row replacement or additions around the standard label, so domain fields can appear without changing the tree contract. Slot content stays responsive to parent changes, and an unrelated expansion does not require every visible row to redraw.
References: src/…/Tree.vue• L1-28 src/…/Tree.vue• L90-103 src/…/Tree.vue• L310-334 src/…/TreeItem.vue• L19-40 src/…/TreeItem.vue• L80-101 src/…/types.ts• L102-167 src/…/useTreeKeyboard.ts• L26-118 src/…/Tree.md• L45-95 src/…/tree.cy.ts• L388-446 src/…/ItemListRow.vue• L1-86 src/…/ComboboxResults.vue• L157-286 src/…/MenuItemContent.vue• L126-202
Code editor molecule
The code editor molecule provides a focused text-editing surface with separate live and committed value boundaries. User edits update the bound value as they happen, while a change event marks the value when focus leaves after an edit. The surface can be editable or read-only, and its public content part reports overflow and horizontal-scroll state.
The visual chrome is optional. Applications can use the public code-editor styling hooks without targeting private editor markup. See Code editor molecule.
References: src/…/CodeEditor.vue• L10-74 src/…/CodeEditorContent.vue• L13-125 src/…/index.ts• L8-32 src/…/style.css• L1-18 src/…/style.css• L24-65
Shared conventions
The library uses a small set of conventions across component families. These conventions let an engineer move from one component to another without learning a new control model for every screen.
Props and public types
Props select a component’s value, visual variant, size, state, and optional behavior. Public type definitions sit beside the component and are re-exported from its barrel, so TypeScript describes the same surface that Vue accepts at runtime. This applies to small controls and composite contracts such as tree node keys, expansion values, and slot data.
Use the component’s public types, slots, events, and exposed methods for extension points. Do not reach into rendered markup or private child state. Shared selection helpers keep trigger and row size scales aligned across Select, MultiSelect, and Combobox, with sm as the fallback for unsupported runtime values.
References: src/…/types.ts• L13-18 src/…/types.ts• L55-59 src/…/types.ts• L18-25 src/…/index.ts• L1-14 src/…/index.ts• L1-22 src/…/index.ts• L1-10 src/…/index.ts• L1-11 src/…/types.ts• L52-100 src/…/utils.ts• L13-86 src/…/utils.ts• L1-11
Values and events
Components that own a value generally support Vue’s v-model pattern. A controlled component receives its value from the parent and emits an update. An uncontrolled component can manage temporary open or selected state when the parent does not bind it.
This distinction matters when components are nested. A parent can keep page state in one place when it needs control, or let a local picker, popover, or navigation surface manage state that has no value outside the component. Selection controls treat the committed value, open state, and optional search query as separate models. Empty single selection is represented as null, while a multiple selection uses an empty array. Tree follows the same controlled model for expanded keys and never writes expansion state into node objects. Its expansion updates use fresh key arrays, so parent watchers can detect each change. Tabs and TabButtons use the model for local choice or route-aware selection according to their public contract.
Pickers keep open state, displayed input text, focused date, and committed date or time value coordinated through the shared picker model. A picker mounted already open shows the requested panel without emitting a false update or moving focus. A time value is committed only after it is selected or passes the control’s input rules.
References: src/…/Popover.vue• L71-115 src/…/types.ts• L5-25 src/…/Combobox.vue• L92-107 src/…/Select.vue• L54-60 src/…/MultiSelect.vue• L80-90 src/…/PickerShell.vue• L109-176 src/…/DatePicker.vue• L114-162 src/…/DateRangePicker.vue• L122-170 src/…/DateTimePicker.vue• L134-175 src/…/TimePicker.vue• L198-205 src/…/Tree.vue• L124-181 src/…/types.ts• L91-100 src/…/types.ts• L12-38 src/…/types.ts• L27-49
Slots and compound components
Slots are the main composition mechanism. They let applications supply labels, icons, actions, headers, panel content, search adornments, and trigger elements while the library keeps ownership of state and interaction rules. Slot props expose the small set of actions and state needed to compose with the component.
Some components expose a compound shape: one root component is paired with named child parts. Dialog has title, description, and close parts. Tabs has list, trigger, and panel parts. Sidebar has header, section, item, label, and card parts. Selection and menu families support standard item regions and named per-item slots. Tree uses the same layered approach for full rows or prefix, label, and suffix regions. Its recursive rows preserve the slot contract and keep parent slot changes visible without forcing unrelated rows to redraw.
Tabs also offers a shorthand tabs model for generated triggers and panels. Use the shorthand when the screen needs data-driven tabs. Use compound children when the screen needs custom structure. Button, Badge, and ItemListRow use prefix, main, and suffix regions to keep visual roles stable while allowing custom content.
References: src/…/TextInput.vue• L1-17 src/…/slotReactivity.cy.ts• L15-36 src/…/index.ts• L19-28 src/…/index.ts• L1-20 src/…/types.ts• L116-177 src/…/types.ts• L157-211 src/…/Combobox.vue• L297-319 src/…/types.ts• L174-200 src/…/ItemListRow.vue• L43-85 src/…/Tabs.vue• L35-47 src/…/Tabs.vue• L377-428 src/…/Tree.vue• L90-103 src/…/TreeItem.vue• L118-161
Native and route-aware surfaces
Interactive components keep their public role clear. A control can remain a native button, become a Vue Router link for an internal destination, or become an external anchor while its visual and loading states stay consistent. Tabs, sidebar items, rail items, mobile navigation items, breadcrumbs, and the page-header back button follow the same distinction.
Choose the link form when the action changes location. Choose a native control when it changes local state or submits a form. Shared navigation logic also works outside a router by rendering a safe plain link for string routes. Do not add custom click logic to replace a component’s built-in route or selection contract.
References: src/…/types.ts• L41-52 src/…/Button.vue• L244-268 src/…/TabTrigger.vue• L46-103 src/…/Tabs.vue• L192-287 src/…/SidebarItem.vue• L26-76 src/…/PageHeaderBackButton.vue• L11-25 src/…/Breadcrumbs.vue• L40-78 src/…/navLink.ts• L16-44 src/…/route.ts• L32-47
Semantic state markers
Components expose state through props, events, and selected semantic attributes. Those attributes support styling and integration without requiring an application to depend on private DOM structure. Labeled inputs expose relationships for descriptions and errors. Selection controls, alerts, tabs, navigation rows, tree rows, and feedback surfaces publish stable state markers.
Treat documented data-slot, data-value, data-color, data-layout, and state attributes as public styling hooks. Do not infer a contract from an element that the component does not document as part of its public surface. An icon-only control still needs accessible text through its label or tooltip.
References: src/…/TextInput.vue• L33-50 src/…/InputLabel.vue• L1-14 src/…/types.ts• L84-136 src/…/Select.vue• L435-470 src/…/Alert.vue• L171-181 src/…/TabButtons.vue• L335-356 src/…/SidebarItem.vue• L1-11 src/…/TreeItem.vue• L1-17 src/…/KeyboardShortcut.vue• L1-12
Composition model
Application UI is assembled from a small number of layers. The app supplies page-specific content, the library supplies reusable behavior, and an optional provider supplies app-wide surfaces that must exist once for the Vue tree.
Application composition
The usual composition starts with an application root, adds the provider when the app uses dialogs or toasts, places a desktop or mobile shell around page content, and then fills each page with controls and local overlays. Components communicate through props, models, emits, and slots rather than through a shared page wrapper.
The following diagram shows the relationship between the app root, global surfaces, page shell, and local UI.
flowchart TD
App[Vue application] --> Provider[FrappeUIProvider]
Provider --> Global[Dialogs and toast surface]
Provider --> Shell[Desktop or mobile shell]
Shell --> Navigation[Sidebar rail, sidebar, tabs, page header]
Shell --> Page[Page content]
Page --> Controls[Inputs, selection controls, and date pickers]
Page --> Local[Local dialogs, popovers, menus, sheets, and feedback]
References: src/…/FrappeUIProvider.vue• L1-45 src/…/DesktopShell.vue• L1-33 src/…/types.ts• L1-30 src/…/MobileShell.md• L41-64 src/…/Sidebar.vue• L1-61 src/…/SidebarRail.vue• L1-21 src/…/PickerShell.vue• L1-60 src/index.ts• L82-114
Provider boundary
FrappeUIProvider is an optional root component for global UI services. It renders the toast provider before the application slot and the dialog host after the slot. It adds no wrapper element, so it does not change page layout.
The provider also supplies page direction to the UI primitives inside it. This keeps tabs, menus, selects, sliders, and scroll areas aligned with an rtl document when the application has not supplied its own Reka configuration. An application that already owns a Reka ConfigProvider keeps that provider and passes the page direction itself.
The provider exposes the shared toast surface through the toast namespace. Overlay components use the shared portal target, with a component-level target able to override it. When no target is supplied, overlays use the document body.
References: src/…/FrappeUIProvider.vue• L1-45 src/…/PageDirection.ts• L1-18 src/…/FrappeUIProvider.md• L27-76 src/…/toast.ts• L9-29 src/…/toast.ts• L31-87 src/…/usePortalTarget.ts• L11-48 src/…/types.ts• L18-20
Nested behavior
The library composes behavior through parent-child context. Tabs coordinate their list, triggers, and panels. Sidebars share collapse and side state with their child parts. Trees share expansion, focus, and drag state with recursive rows. Popovers pass open state and close actions to trigger and content slots. Selection results and menu content inherit row composition from ItemListRow.
Prefer the family’s root and child components when a feature has a compound API. Use a lower-level component only when the public composition points do not express the required screen structure. Keep sorting, data selection, route state, and tree data in the application. Let the molecule supply roles, visual states, and interaction chrome.
References: src/…/Tabs.vue• L127-155 src/…/TabTrigger.vue• L67-85 src/…/Sidebar.vue• L45-60 src/…/SidebarItem.vue• L181-229 src/…/DesktopShell.vue• L52-69 src/…/Tree.vue• L309-334 src/…/TreeItem.vue• L125-174 src/…/Popover.vue• L1-16 src/…/types.ts• L74-91 src/…/ItemListRow.vue• L51-85 src/…/ListHeader.vue• L44-69 src/…/ListHeaderCellSort.vue• L12-20
Change checklist
When these files or sections are changed, remember to consider these:
- Update src/index.ts and the affected component barrel together when a component or public type changes its import path.
- Check the package
exportsmap when moving a family between the stable root and a separate subpath. An import can remain valid in source while breaking for package consumers. - Preserve the model and event contract when changing controlled or uncontrolled state. Parent screens can silently stop updating if the prop and
update:*event no longer match. - Keep grouped selection and menu data under the public
optionskey. The normalizers diagnose the formeritemskey instead of accepting a second contract. - Preserve named slots and compound child exports when changing component composition. Application markup may depend on those names even when rendered HTML does not change.
- Preserve reactive slot reads when a computed value controls layout, labeling, actions, or trigger mode. A slot that changes after mount must update all dependent components, including recursive rows.
- Keep the shared picker shell’s open, input, typing, focus, and portal behavior aligned when changing a date or time picker. Pickers must seed an initially true
openprop without emitting a false update or stealing focus. - Keep calendar focus, range preview, dual-pane navigation, and unavailable-date rules aligned when changing calendar panels or range calendars.
- Keep portal target behavior aligned across overlay and floating badge families. A new overlay that ignores the shared target can render outside an embedded app’s clipping, stacking, or focus boundary.
- Keep documented semantic markers stable when changing control markup. Styling and accessibility integrations may use
data-slot,data-value,data-color,data-layout, IDs, and ARIA relationships. - Keep
TabButtonsandTabsvariants and state markers aligned when either family changes. Applications may use the same styling hooks for both controls. - Keep route detection and activation mode aligned when changing
Tabs,TabTrigger, sidebar navigation, breadcrumbs, or the shared navigation link helper. - Keep
DesktopShell.navSide, its internal navigation context, and side-sensitive tooltip and active-indicator behavior aligned when changing desktop navigation. - Keep every toast creator and description path inside the safe rendering contract when changing the toast wrapper. Mount the toast host before app content.
- Keep
AlertandSidebarCardaction callbacks aligned with the parent-owned dismiss contract. The action can emit dismissal, but the parent still controls whether the surface is removed. - Keep
Treeexpansion as a fresh array of node keys. Do not restore the old boolean model or anexpandedfield on node data. - Keep
Treerow slot forwarding reactive and avoid making an unrelated row redraw when a different branch changes state. - Keep
Treedrag-end data aligned with application node updates. The event reports parent keys, drop position, and final index, while the tree does not mutate caller-owned node data. - Keep
ItemListRowprefix, label, and suffix regions aligned with menu and selection result wrappers. The outer interactive primitive owns highlight and checked backgrounds. - Keep navigation
hrefvalues behind the shared safe-link rule. Do not add a data-driven anchor path that bypassessafeHref. - Keep editor media upload results centered on a safe
file_url, and preserve the progress, abort, staged-file, retry, and live-editor-view contract across the editor entry point and upload engine. - Keep externally loaded editor content outside undo history. Preserve the distinction between parent content synchronization and edits made after synchronization.
- Keep the code editor’s live model, blur commit, overflow transitions, keyboard exit behavior, and content-part markers aligned when changing its wrapper, content part, or styles.
- Keep list row selection, activation, and navigation precedence aligned when changing the
frappe-ui/listfamily. Keep sort state application-owned. - Keep
MobileShell,MobileNav, andMobileNavItemregion and route contracts aligned when changing the mobile frame. - Keep the provider’s direction behavior aligned with any component that reads document direction. A nested Reka provider must remain the explicit source when the application supplies one.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| Importing a family from an internal component file instead of its public barrel | The app depends on an unreviewed export that can move or disappear | Import from frappe-ui or the documented package subpath |
| Rendering dialogs or toasts without the provider or host surfaces | A dialog has no shared host, or an early toast is dropped before subscription | Mount FrappeUIProvider once at the app root when using these surfaces |
| Binding a model without handling its update contract | The screen displays a stale value or does not receive user changes | Follow the component’s public v-model and update:* contract |
Passing items instead of options to a grouped selection or menu option | The group fails with a named migration error before its rows render | Rename group children to options |
Passing an old boolean or node-level expanded field to Tree | Expansion state is ignored or the tree falls back to a closed view | Bind v-model:expanded to an array of node keys |
| Adding an overlay without the shared portal target in an embedded app | The overlay escapes the host’s clipping, stacking, or focus boundary | Provide the app portal target or use the component’s portalTo override |
Rendering a data-driven href without safeHref | An unsafe URL can execute or load content on click | Use the shared link helper and keep unsafe values out of rendered anchors |
| Mounting a date or time picker open without its initial-open lifecycle | The panel can show the wrong value or move focus during mount | Keep the shared picker lifecycle and open contract together |
| Applying client filtering to server-ranked combobox results | Valid fuzzy or ID-based results disappear | Set filterable to false when the server owns matching |
| Adding a route to a tab trigger after it mounts | The trigger can render as a link but cannot drive route selection correctly | Provide the route from the first render or remount the trigger |
| Giving right-side desktop navigation an item that does not read side context | Tooltips open into the navigation or active indicators use the wrong edge | Keep side-sensitive items under DesktopShell navigation context |
| Calling an unwrapped toast creator with HTML content | Toast content can bypass safe rendering or early subscription behavior | Route public toast calls through the exported wrapper and provider |
Assuming an Alert or SidebarCard hides itself after dismissal | The surface emits dismiss but remains visible because its parent owns hiding | Handle the event in the parent and update the parent’s visible state |
| Mutating tree data in response to a drag without using reported indexes and parent keys | Displayed hierarchy can diverge from the committed move | Apply DropInfo to application-owned nodes and update nodes |
| Treating externally loaded editor content as a user edit | The first undo removes the loaded draft instead of the first new edit | Synchronize external content without adding it to editor history |
| Treating the code editor’s live model as its commit event | A screen saves on every keystroke or misses the intended blur commit | Use update:modelValue for live text and change for the committed edit |
| Letting a selectable list row navigate before selection is handled | A click changes location instead of updating list selection | Keep selection handling ahead of row navigation |
| Treating a list sort header as the owner of sort state | The sort indicator and application query can disagree | Bind direction from the application and handle the emitted click |
| Using one responsive shell as if it owned both desktop and mobile navigation | Page scroll or navigation slots attach to the wrong frame | Render the shell for the active viewport and use its documented region slots |
| Using a nested Reka provider without passing page direction | RTL tabs, menus, selects, sliders, or scroll areas lay out left to right | Pass the document direction to the application-owned provider |
Key files
| File | Why to read it |
|---|---|
| src/index.ts | Defines the stable package surface and component-family groups |
| package.json | Defines package import surfaces and the boundary between stable and separate subpaths |
| experimental/…/index.ts | Shows the separate export for the deprecated theme control |
| src/…/FrappeUIProvider.vue | Shows the app-level host for dialogs, toasts, and page direction |
| src/…/PageDirection.ts | Shows how document direction reaches UI primitives |
| src/…/Button.vue | Shows the shared pattern for slots, states, icons, links, loading, and native controls |
| src/…/Breadcrumbs.vue | Shows responsive crumb collapse, route and link forms, and safe link handling |
| src/…/navLink.ts | Shows router-aware and router-free navigation composition |
| src/…/utils.ts | Defines shared selection scales and grouped-option validation |
| src/…/Select.vue | Shows single-value selection, custom trigger content, and menu composition |
| src/…/Combobox.vue | Shows input and button trigger modes plus separate value, open, and query models |
| src/…/MultiSelect.vue | Shows multi-value selection, query ownership, and select-all behavior |
| src/…/PickerShell.vue | Shows the shared trigger, popover, focus, initial-open, and value boundary for date and time pickers |
| src/…/DatePicker.vue | Shows single-date composition with calendar and action slots |
| src/…/DateRangePicker.vue | Shows range selection and application-owned range actions |
| src/…/DateTimePicker.vue | Shows composition of date and time selection in one molecule |
| src/…/CalendarPanel.vue | Shows calendar focus, date bounds, month/year choice, and RTL navigation |
| src/…/Dialog.vue | Shows dialog structure, focus, dismissal, actions, and portal placement |
| src/…/Alert.vue | Shows content-driven alert layouts, actions, and semantic status roles |
| src/…/Progress.vue | Shows continuous and interval progress presentation |
| src/…/KeyboardShortcut.vue | Shows presentation-only shortcut parsing and accessible names |
| src/…/KeyboardShortcutsDialog.vue | Shows searchable shortcut groups composed with Dialog |
| src/…/ToastProvider.vue | Shows the global toast host and direction-aware placement |
| src/…/Sidebar.vue | Shows the navigation landmark and app-owned sidebar composition boundary |
| src/…/SidebarHeader.vue | Shows workspace identity and collapse-aware header composition |
| src/…/SidebarItem.vue | Shows route or button semantics, active inference, collapse behavior, and the separate trailing zone |
| src/…/SidebarSection.vue | Shows named groups and independently controlled section collapse |
| src/…/SidebarRailItemBadge.vue | Shows portal-based unread count and dot badges |
| src/…/SettingsSidebar.vue | Shows the settings tab-list region |
| src/…/SettingsNavItem.vue | Shows a settings tab trigger with prefix and suffix slots |
| src/…/ItemListRow.vue | Shows a stable row molecule for collection, menu, and selection UI |
| src/…/Tree.vue | Shows the tree’s public model, row slot forwarding, and shared recursive context |
| src/…/TreeItem.vue | Shows recursive row composition, hierarchy semantics, focus, and drag/drop hooks |
| src/…/types.ts | Defines tree node, expansion, slot, and drag result contracts |
| src/…/useTreeKeyboard.ts | Shows keyboard movement and RTL tree behavior |
| src/…/Tabs.vue | Shows coordinated compound components, shorthand composition, and route-aware selection |
| src/…/index.ts | Defines the specialized editor entry point and its public building blocks |
| src/…/useEditor.ts | Shows the editor value boundary, editable state, and upload contract |
| src/…/index.ts | Defines the specialized code editor entry point and its public parts |
| src/…/CodeEditor.vue | Shows the live model, blur commit, and extension boundary |
| src/…/CodeEditorContent.vue | Shows the content surface and public overflow and scroll markers |