Skip to main content
Version: Next

@editora/ui-core

Framework-agnostic Web Components and utilities for the Editora UI ecosystem.

Installation

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

API Surface

SurfaceTypeNotes
showToastFunction exportToast helper from UI-core layer
createDialogManager, createAlertDialogManagerFunction exportsPromise-based dialog manager APIs
signal package exports (export * from './signal')State exportsReactive signal/computed/effect utilities
ElementBase exports (export * from './ElementBase')Base class exportsShared custom-element base primitives
export * from './theme'Theme exportsToken + theme utility contracts
export * from './portal'Portal exportsPortal management utilities
export * from './focusManager'Focus exportsFocus orchestration utilities
export * from './overlayManager'Overlay exportsOverlay stacking/lifecycle helpers
export * from './plugin'Plugin exportsUI plugin integration APIs
export * from './icons'Icon exportsUI icon registry helpers
UIButton, UITooltip, UIDropdown, UIInput, UIForm, UIPopover, UITabs, UIMenu, UIIcon, UIToast, UILabelComponent class exportsCore controls
UIPagination, UIHoverCard, UICollapsible, UIDirectionProvider, UIAccordion, UICheckbox, UIRadioGroup, UISwitch, UISlider, UISelect, UIToggle, UIToggleGroupComponent class exportsInputs + interaction controls
UIAlertDialog, UIAspectRatio, UIAvatar, UIBadge, UITable, UINavigationMenu, UIMenubar, UIContextMenuComponent class exportsData/navigation primitives
UIPresence, UIProgress, UIMarquee, UIAnimatedText, UIAnimatedBeam, UIDock, UIOrbiter, UIScrollArea, UISeparator, UISlot, UIToolbar, UIPortal, UIVisuallyHiddenComponent class exportsAccessibility/layout utilities

Component Docs

  • Dock - MacOS-style launcher and command shelf with magnification and roving focus
  • Marquee - Infinite scrolling rail for text, cards, media, and vertical feeds
  • AnimatedText - Text-first animation primitive for hero copy, status callouts, and narrative UI
  • AnimatedBeam - Animated integration-diagram beams between nodes and hubs
  • Orbiter - Multi-ring orbital motion around a central focal point | UIBox, UIFlex, UIGrid, UISection, UIContainer, UIBreadcrumb, UISidebar, UIAppHeader, UIDrawer, UIDialog, UILayout | Component class exports | Layout and shell components | | UIBlockControls, UIPluginPanel, UIFloatingToolbar, UISelectionPopup, UICommandPalette | Component class exports | Editor-oriented controls | | UITextarea, UIField, UICombobox, UIAlert, UISkeleton, UIEmptyState, UIDataTable, UIChart, UITimeline, UICalendar, UIOdometer | Component class exports | Form/data presentation | | UIColorPicker, UIDatePicker, UIDateRangePicker, UITimePicker, UIDateTimePicker, UIDateRangeTimePicker, UIGantt, UIStepper, UIWizard, UIQuickActions | Component class exports | Advanced input + workflow components | | UIAlertDialog* and UIDialog* detail/template types | Type exports | Dialog event/detail typing |

Best Practices

  • Import UI core once at app bootstrap to register custom elements.
  • Keep dialog manager instances at application scope.
  • Use token/theme exports for consistent component theming.

Accessibility

Validate semantic roles, focus traps, and keyboard interactions for dialog/overlay components.

Performance Notes

Avoid repeated global registration and minimize unnecessary portal churn in overlay-heavy screens.