Skip to main content
Version: Next

@editora/ui-core

UI primitives and foundational components for Editora integrations.

Installation

npm i @editora/ui-core
import "@editora/ui-core";

Quick Start

import { createDialogManager, showToast } from "@editora/ui-core";

const dialogs = createDialogManager();
await dialogs.alert({ title: "Saved", description: "Document changes were persisted." });
showToast({ message: "Saved", level: "success" });

API Reference

SurfaceTypeNotes
showToastFunction exportNotification utility
createDialogManager, createAlertDialogManagerFunction exportsPromise-based dialog utilities
export * from './signal'Module re-exportReactive state primitives
export * from './ElementBase'Module re-exportBase custom-element utilities
export * from './theme', ./portal, ./focusManager, ./overlayManager, ./plugin, ./iconsModule re-exportsShared runtime utilities
UIButton, UITooltip, UIDropdown, UIInput, UIForm, UIPopover, UITabs, UIMenu, UIIcon, UIToast, UILabelClass exportsCore controls
UIPagination, UIHoverCard, UICollapsible, UIDirectionProvider, UIAccordion, UICheckbox, UIRadioGroup, UISwitch, UISlider, UISelect, UIToggle, UIToggleGroupClass exportsInteraction controls
UIAlertDialog, UIAspectRatio, UIAvatar, UIBadge, UITable, UINavigationMenu, UIMenubar, UIContextMenuClass exportsNavigation/data primitives
UIPresence, UIProgress, UIScrollArea, UISeparator, UISlot, UIToolbar, UIPortal, UIVisuallyHiddenClass exportsUtility primitives
UIBox, UIFlex, UIGrid, UISection, UIContainer, UIBreadcrumb, UISidebar, UIAppHeader, UIDrawer, UIDialog, UILayoutClass exportsLayout system
UIBlockControls, UIPluginPanel, UIFloatingToolbar, UISelectionPopup, UICommandPaletteClass exportsEditor-oriented controls
UITextarea, UIField, UICombobox, UIAlert, UISkeleton, UIEmptyState, UIDataTable, UIChart, UITimeline, UICalendarClass exportsForm/data components
UIColorPicker, UIDatePicker, UIDateRangePicker, UITimePicker, UIDateTimePicker, UIDateRangeTimePicker, UIGantt, UIStepper, UIWizard, UIQuickActionsClass exportsAdvanced input/workflow components
Dialog type contracts (UIAlertDialog*, UIDialog*)Type exportsTyped dialog payload/event details

Best Practices

  • Register once during app startup.
  • Keep dialog manager instances shared at app shell level.
  • Use theme tokens for all brand customizations.

Accessibility

Check keyboard focus, escape handling, and role semantics for all overlay components.

Performance Notes

Avoid repetitive global registrations and keep portal-driven overlays lightweight.