Skip to content

Component Overview ​

OAS-UI provides framework-agnostic Web Components organized into 10 groups by purpose; this page lists every component doc group by group (the total evolves with releases — the page listing and the sidebar are the source of truth). Click a component name to see its full documentation and examples.

Basic ​

  • Badge —— A numeric/status badge, typically used for message counts or new-content indicators.
  • Button —— Basic button component, an enhanced native <button>.
  • ButtonGroup —— Button group: combines multiple oas-button elements into a value-selection group; adjacent button corners merge and hover only highlights the current item.
  • Divider —— A horizontal/vertical divider that separates content.
  • Icon —— An original linear icon set that renders inline SVGs by name; tree-shakable.
  • Kbd —— A keyboard shortcut display component. keys is split by spaces into multiple keycaps joined with +; non-interactive.
  • Label —— A form label component. for points to the target control's id, and clicking focuses the control; supports a required asterisk and its position.
  • Link —— A text link, an enhanced native <a>.
  • Space —— A layout container with even horizontal/vertical spacing.
  • Tag —— A small tag used for marking and categorization.
  • Typography —— Typography components for text, titles, and paragraphs.
  • VisuallyHidden —— A container that is visible to screen readers but visually hidden. Commonly used for assistive descriptions, form validation hints, and other accessibility scenarios.

Layout ​

  • AspectRatio —— Locks a container's size to a specified aspect ratio: 100% width with height derived from the ratio, content filling the area and cropped to the ratio; with no children it still occupies space at the ratio.
  • Container —— A fixed-width, centered container: size maps to --oas-container-* width tokens, margin-inline: auto centers it (logical property, RTL-compliant automatically), and max-width: min(100%, token) prevents overflow on narrow screens.
  • Flex —— A layout container based on CSS Flexbox; attributes control direction, main/cross-axis alignment, gap and wrapping.
  • Grid —— A 24-column grid layout system. Pair it with oas-grid-item to divide column widths, with support for gap, offset and a custom total column count; setting columns switches to an auto equal-width layout (simple-grid).
  • Layout —— A classic page skeleton of header + sider + content + footer, used with semantic child components.
  • Masonry —— A masonry layout container based on CSS columns; child items are automatically distributed across columns without being split.
  • SafeArea — reserves the notch and home-indicator height from env(safe-area-inset-*) for embedded mobile hosts, with an explicit size override.
  • ScrollArea —— A container that wraps content and takes over the scrollbar appearance: a thin custom scrollbar that thickens on hover; with auto-hide it is only shown while scrolling or hovering, and scroll events are throttled.
  • Sidebar —— A collapsible side bar: on desktop, collapsed narrows it to an icon strip; on mobile (narrower than mobile-breakpoint, default 768px) it automatically becomes an overlay drawer with a backdrop. Clicking outside, the close button or Esc collapses it.
  • Splitter —— A split component that resizes the left/right panel widths, adjustable via mouse drag or arrow keys.
  • StatusBar —— reserves the top status-bar height with height / color overrides; the slot holds host-drawn status content.

Form ​

  • AutoComplete —— Type to get suggestions, with keyboard up/down selection, Enter to confirm, and Esc to close.
  • Calendar —— A calendar component with month/year modes, supporting selection, disabled dates, week numbers, and keyboard grid navigation; date descriptions use Intl.DateTimeFormat (locale-aware).
  • Cascader —— Multi-level linked selection supporting submission at any level and path display.
  • Checkbox —— An enhanced native <input type="checkbox"> supporting indeterminate state and checkbox groups.
  • ChipsInput —— Recipient/tag-style input: paste auto-split, Enter to commit a chip, Backspace to edit the previous one, inline email validation (oas-invalid on invalid), max limit, duplicate dedup.
  • CodeButton —— Verification-code send button: clicking emits oas-send, with built-in cooldown countdown and resend, plus a custom-content slot.
  • ColorPicker —— Click the trigger swatch to open a color panel, supporting preset colors, HSV, and RGB input.
  • Combobox —— A filterable single-select combobox whose input is the control: an always-visible editable input shows the selected label, typing filters options in real time, and value takes option.value on selection.
  • DatePicker —— A date picker supporting four types — single date, date range, month, and datetime — with keyboard operation and Intl.DateTimeFormat formatting.
  • DynamicInput —— Add/remove/edit for array fields; each row reuses the oas-input component, supporting both controlled and uncontrolled modes.
  • DynamicTags —— Type in the input and press Enter/comma to create tags; supports deduplication, a maximum limit, and keyboard deletion.
  • Editable —— Click/Enter/Space enters edit mode; Enter submits, Esc cancels, and empty-value submission is non-destructive by default.
  • Form —— An enhanced native <form> supporting validation and submission of inner fields according to rules.
  • FormItem —— oas-form-item: label + control container + error slot; spans grid columns via span inside a layout="grid" form.
  • FormList —— oas-form-list: an add/remove group of field rows inside a form; row templates are cloned with field name indexed automatically (nested values), validation/submit follow the host form.
  • ImageCropper —— Image cropping: fixed/free-ratio crop frame, zoom, 90° rotation, exports a Blob / dataURL, usable as an upload pre-step.
  • ImagePicker —— Multi-image picking: click or drag to select, thumbnail grid, reorder and remove, count limit; files feeds the upload chain.
  • Input —— An enhanced base input built on the native <input> element.
  • InputNumber —— An enhanced native <input type="number"> with stepper buttons and range constraints.
  • Knob —— A rotary control that maps continuous/discrete values to a circular angle, designed for parameter-dense panels (audio/industrial/3D); supports circular + linear drag interactions and double-click reset.
  • Matrix —— A matrix question with rows (sub-questions) and columns (options): in-row radio or checkbox, row-level or table-level required validation, fieldset + legend row headers and in-row arrow-key navigation.
  • Mentions —— A mention input component that pops a suggestion overlay when typing @, suited for @member / @task scenarios.
  • NumberKeyboard —— Numeric keyboard: randomized key order, delete/done keys, license-plate layout (province abbreviation + letters + digits), with physical-keyboard input inside the component.
  • PasswordStrength —— A standalone password-strength meter: for association or slot auto-discovery, built-in 0–4 scoring with weak-password penalties, controlled and custom-scorer modes.
  • Picker — Mobile-style scroll-wheel column selector: independent columns or cascading tree, native inertial scrolling with snap, keyboard accessible, form-associated.
  • PinInput —— A segmented code input supporting keyboard arrow navigation, Backspace fallback, and paste auto-distribution.
  • Questionnaire —— A step-driven form flow orchestrator: step header + progress (Step n / m) + one panel per step + per-step validation gating; each step embeds one <oas-form>, reusing the oas-form kernel.
  • Radio —— An enhanced native <input type="radio"> supporting radio groups and controlled values.
  • Rank —— Add options to a ranked sequence by click / keyboard (rank badges); ranked items can move up / down or be removed, with partial ranking, min-ranks validation and aria-live rank announcements.
  • Rate —— A star rating supporting keyboard arrow-key adjustment; clicking the currently selected star clears the value by default.
  • SchemaForm —— A declarative form described by one JSON schema plus uiSchema: compiled into a render plan mounted on the form family, with values and field validation handled by the form kernel while error injection, array-level checks and reactions live in the component.
  • Segmented —— A single-select linear segmented control for light filtering / view switching, role="radiogroup", with per-item disabling.
  • Select —— A dropdown selector supporting single/multiple selection, groups, clearable, remote search, and custom creation, with full keyboard operation.
  • Slider —— A slider built on an enhanced native <input type="range">.
  • Swatch — Inline preset color swatches for quick pick & display: theme/tag/favorite colors without opening a panel; swatch item + selection group (single/multi, roving keyboard).
  • Switch —— A switch button with role="switch".
  • Textarea —— An enhanced native <textarea> supporting auto-height and resize.
  • TimePicker —— A time picker with dropdown hour/minute/second columns; ↑/↓ adjusts, Enter confirms, Esc cancels, and stepping intervals are supported.
  • ToggleButton —— An aria-pressed two-state toggle button; the pressed state uses the primary color background.
  • ToggleGroup —— A mutually exclusive button group for single/multiple selection: single mode uses radio semantics, multiple mode uses checkbox semantics; keyboard arrow navigation and controlled value.
  • Transfer —— Dual left/right panels with shuttle buttons in the middle, supporting search filtering and keyboard operation.
  • TreeSelect —— Tree-structure selection supporting parent-child cascaded multiple selection.
  • Upload —— Click or drag to select files; displays the file list and upload progress.

Feedback & Overlays ​

  • Alert —— An inline notice bar for success, info, warning, or error messages, with support for a custom title and a close button.
  • Backdrop —— A full-screen semi-transparent overlay with transparent/blur variants and body scroll locking; the node is automatically unmounted when open=false, leaving no orphan DOM.
  • BottomSheet —— feedback Mobile bottom sheet container: close via drag handle / backdrop click / Esc, with safe-area and focus trap built in; passive mode serves as a structural placeholder for overlay PC forms.
  • Confirm —— Imperative confirmation dialog based on Promises, reusing oas-modal under the hood.
  • Curtain — a one-time full-screen overlay that opens on first visit and remembers dismissal; reset() clears the memory.
  • Drag — Wrap any children into a draggable block: unified pointer dragging (moves under 4px stay clicks), boundary clamping (viewport or selector), axis restriction, optional inertia and position memory, arrow-key nudging and aria-live position announcements.
  • Drawer —— A panel that slides in from the side, often used for filters, details, and similar scenarios.
  • Empty —— A placeholder for empty data, supporting custom descriptions, custom illustrations with sizing, and hiding the illustration or action area.
  • HoverCard —— A preview card triggered on hover/focus with configurable delay.
  • LoadingBar —— A global loading progress bar at the top of the page, driven by an imperative API.
  • Message —— Imperative global message notifications with support for types, custom duration, and manual dismissal.
  • Modal —— A modal dialog for interrupting flows that require user confirmation or input.
  • NoticeBar —— A notice bar for the top of a page or inside a section: icon + seamlessly scrolling long text + vertical multi-notice rotation + closable + an action link.
  • Notification —— Notification cards in the top-right corner, supporting title, description, duration, and type.
  • Offline — follows online/offline events, shows a bar/block while offline and disappears on reconnect, without a first-frame flash.
  • PageLoading — a full-screen mask with spinner/skeleton/progress modes and show() / close() programmatic control.
  • Popconfirm —— Shows a confirmation bubble next to the trigger element, commonly used before destructive actions like deletion.
  • Popover —— A click-triggered popup panel that can hold a title, body text and arbitrary custom content.
  • Progress —— Shows task progress, supporting line and circle forms, status colors, and hidden text.
  • PullRefresh —— A mobile pull-to-refresh container: pull past the top of the list to reveal the indicator (finger-following resistance curve); releasing past the threshold dispatches oas-refresh and parks; when the host finishes it removes refreshing and the component plays the success copy before bouncing back.
  • Result —— A result feedback page supporting four states: success, error, warning, and info.
  • ShareSheet — a bottom share panel with a channel grid and cancel action; clicking a channel dispatches oas-select and closes automatically.
  • Skeleton —— A placeholder skeleton for loading states, supporting an avatar, title, multiple paragraph rows, and a shimmer animation.
  • Snackbar —— A lightweight feedback bar that slides in from the bottom (or top). The open attribute is controlled; it can include an action button and dispatches oas-close after 4 seconds by default, leaving dismissal to the host.
  • Spin —— A loading indicator that can be used standalone or wrap content with an overlaid mask.
  • Toast —— Imperative global toasts supporting success/error/warning/info/loading states, action buttons, and promise chains; auto-dismisses after 3 seconds by default.
  • Tooltip —— A simple text prompt bubble triggered on hover or keyboard focus.
  • Affix —— Pins content to the top of the viewport; it becomes fixed once the page scrolls past a given offset. Commonly used for fixed table action bars, toolbars, etc.
  • Anchor —— Tracks the current section on scroll and highlights it automatically; clicking an anchor smooth-scrolls to the target.
  • AppBar —— An app bar at the top of the page or toolbar area: title + hamburger button + action area with overflow collapse, scroll hiding, and an extended section; role="banner" semantics, with the hamburger button dispatching oas-menu-toggle and keeping aria-expanded in sync.
  • BackTop —— A back-to-top button fixed to a corner of the viewport; clicking it smooth-scrolls back to the top of the page.
  • BottomNavigation —— A mobile bottom navigation bar: role="navigation" with the current item marked aria-current="page"; every enabled item is Tab-reachable, arrow keys move focus as an enhancement, Enter/Space selects; the active item uses the primary color plus an icon, with a thin top divider.
  • Breadcrumb —— Shows the page hierarchy path; the last item is the current page (not clickable).
  • Command —— A command palette (⌘K / Ctrl+K) — search filtering, keyboard selection and Enter to execute. open is controlled: it can be set externally, and the global ⌘K shortcut or Esc closes it (closing fires oas-select / removes open).
  • ContextMenu —— A right-click menu that opens at the mouse position within its wrapped region.
  • Dropdown —— A click-triggered menu that opens anchored to the trigger element.
  • FloatButton —— A circular action button fixed to the bottom-right corner of the page by default, for quick actions like "New" and "Feedback"; supports a badge and a custom icon.
  • IndexBar —— A mobile sectioned list with an alphabet index rail: tap/drag a letter to jump to a section, and scrolling highlights the current letter in reverse.
  • Menu —— A standalone menu list with selection state and keyboard navigation.
  • Menubar —— A desktop-app-style top menu bar (File / Edit / View). Click or hover expands submenus (cascading popups), with arrow key support, Alt access keys and a focus trap.
  • NavigationMenu —— A website-style multi-level navigation bar: hover / keyboard expands submenus (cascading popups); leaf items with href render as links.
  • PageHeader —— A page header information area with title, subtitle, back button and a right-side action area. Commonly used at the top of detail and edit pages.
  • Pagination —— Data pagination navigation with page-number ellipsis, prev/next flipping, configurable sibling page count, total display, page-size switching and quick jump.
  • SpeedDial —— A floating main button that expands a list of sub-actions, commonly used for quick actions like "New/Share"; aria-expanded stays in sync, clicking outside / Esc collapses it, with no orphan popups.
  • Stepper —— A step-driven content panel: a clickable step header synced with content panels (only the current step is visible), for wizards / multi-step forms / checkout flows; oas-stepper + oas-stepper-panel work as a pair (tabs-style value association).
  • Steps —— A step indicator that guides users through a task, with four states (wait / process / finish / error), vertical layout and clickable navigation.
  • Tabs —— Tab-based content switching with arrow-key navigation; inactive panels are hidden via the hidden attribute. Use oas-tabs together with oas-tab-panel.
  • Toolbar —— A container for groups of tool buttons: role="toolbar" + aria-label, Tab enters and arrow keys move between buttons (roving tabindex — only the current item is focused).
  • Tour —— Step-by-step feature onboarding with a fullscreen overlay and target highlighting.

Workbench ​

  • ActionBar —— A bottom command strip + readout wells container: command buttons + statistic/task-progress/media-transport/music readout wells, multiple surfaces (charcoal/dark/light); complementary to oas-toolbar (toolbar role).
  • FloatingPanel —— A non-modal tool window driven by host attributes (open / rect): title-bar drag, eight-way resize, constant-overlay family stacking (only the frontmost tier), pointer and keyboard equivalent; no portal, no backdrop, no focus trap.
  • Inspector —— A right-side (or left-side) object editing panel: pill tab strip + collapsible sections + label/control rows; role="complementary", complementary to oas-sidebar (navigation menus): inspector examines and edits object properties.
  • StatusBar —— A bottom silent status strip: left/right segmented cells + clickable + background-activity spinner + warning/error semantic colors; complementary to oas-footer: statusbar carries status vocabulary (counts/selection/sync state), footer is the substantive page footer.
  • TitleBar —— A window title bar and app-level chrome: draggable region + window controls/document well + compact/large tiers; aimed at desktop shells (Electron/Tauri) and "windowed" web workbenches.

Data Display ​

  • Avatar —— Displays a user or object avatar, supporting both text-placeholder and image forms.

  • Barcode —— A 1D barcode component based on a pure TypeScript, zero-dependency encoder (built in-house): 6 symbologies in the first release (CODE128/EAN-13/EAN-8/UPC-A/CODE39/ITF-14), built-in scannability guardrails (quiet-zone floor / fixed white background), inline SVG output, downloadable.

  • Barrage — streaming track-based comments with speed control, non-overlapping scheduling, a density cap and pause/clear APIs.

  • Card —— An information container that groups a set of related content.

  • Carousel —— Cycles through multiple screens of content in the same viewport, with manual switching and autoplay support.

  • Chart —— A self-developed SVG chart component (no third-party chart engine) supporting line / bar / pie / area / donut / stacked-bar / radar / polar-area / horizontal-bar plus combo and dual-axis. Data updates redraw automatically, and animations are disabled under prefers-reduced-motion.

  • Code —— A code block component (self-developed regex token highlighting, no third-party highlighting engine) supporting basic coloring for common languages, line numbers, and a copy button.

  • Collapse —— Stows content in collapsible panels to keep the focus on key information.

  • Collapsible —— A single-region collapse primitive: one freely controllable collapsible region. Collapse is the "multi-region + accordion" orchestration set; collapsible is the standalone single piece, suited for file-tree nodes, detail fold-away areas, and similar scenarios.

  • Comment —— A purely presentational comment block container that assembles the author avatar, name, time, content, and actions via slots; nested child comments are automatically indented.

  • Countdown —— A countdown component that refreshes in real time, supports day/hour/minute/second formatting templates, emits oas-finish when reaching zero, and automatically cleans up its timer on disconnect.

  • Descriptions —— Displays read-only information in groups, suitable for detail page scenarios.

  • DiffViewer —— A read-only text diff with line- and word-level highlights, unified/split views, unchanged-region folding, virtual scrolling, keyboard and screen-reader support.

  • Ellipsis —— Automatically truncates long text with single-line / multi-line clipping; on overflow it shows the full text in a tooltip on hover, and it can also expand / collapse.

  • Equation —— A math formula component (self-developed simplified LaTeX subset, zero third-party formula engine) covering common high-school / university formulas: superscripts/subscripts, fractions, square roots, summation/integration (with limits), Greek letters, and common operators.

  • Gantt — Project scheduling: row-tree WBS + task bars/milestones/summary bars + FS/SS/FF/SF dependency links + six-scale time ruler + drag to reschedule/stretch/progress + three-level read-only + virtual scrolling.

  • GradientText —— A purely presentational component that fills text with a gradient color, implemented with background-clip: text; it defaults to a two-color theme-token gradient and supports arbitrary color-stop arrays and directions. No events.

  • Highlight —— Text match highlighting: matched segments from text + highlight (space-separated words or a JSON array) render as <mark> (token colors, dark-mode aware), with case / whole-word / accent toggles, dispatching oas-count after each recompute.

  • Image —— Displays image resources, with an optional built-in preview feature.

  • JSONViewer —— A read-only JSON tree with collapse/expand, search, JSONPath copy, fixed-row virtual scrolling, keyboard and screen-reader support.

  • Kanban — Column + card kanban board: drag across columns / reorder within / column reorder / WIP limits / multi-select / swimlanes, fires oas-change on drop.

  • List —— Displays a collection of related items, capable of carrying a title, description, and extra actions.

  • Log —— A monospace log display container that supports incremental appending and "stick-to-bottom" auto-scrolling, suitable for consoles / build output scenarios.

  • Marquee —— A purely presentational component that scrolls long content horizontally in a loop; content cycles seamlessly via a slot. Supports pause on hover and static fallback under prefers-reduced-motion. No events.

  • NumberAnimation —— An animation component that eases a number from its current value to the target value, stops at the target and emits oas-finish; under prefers-reduced-motion it jumps straight to the target, and disconnecting cancels the rAF without leaks.

  • QRCode —— A QR code component based on a pure TypeScript, zero-dependency encoder (built in-house) that outputs inline SVG and is scannable and downloadable.

  • RelativeTime —— Localized relative time (Intl.RelativeTimeFormat) backed by a semantic <time datetime>; optional auto-refresh follows page visibility, and invalid or missing values render a safe empty state.

  • Resource — Resource lanes + workload histogram: task allocation, capacity and overload highlighting per resource; a pure view layer that does not write schedules back.

  • RollingText — digits and characters roll column by column on value changes, with prefix/suffix and decimal precision.

  • Scanner — Camera scanning: active drives getUserMedia + native BarcodeDetector recognition, dispatches oas-scan on hit; falls back to manual input when camera or permission is unavailable.

  • Scheduler — Month-view scheduler: event chips in day cells (title + color bar) + events read/write channel + CRUD methods and events, pure UI state.

  • Signature — Canvas signature pad: pointer stroke capture + two-way value + oas-change, multi-pointer filtering / single-point rejection, strokes preserved on resize.

  • Statistic —— Displays statistical values with Intl.NumberFormat thousands separators and precision (locale-aware), supporting prefix/suffix and a skeleton loading placeholder.

  • SwipeCell —— Reveal an action button group by swiping a list item horizontally: the default slot is the content layer and slot="actions" the action area, swiped toward inline-start and snapped open/closed by threshold; single-open exclusion, outside-click/scroll close, Esc close, and keyboard-reachable action buttons; oas-open / oas-close dispatched when the state settles.

  • Table —— Displays structured data in a row-and-column grid with sorting, row selection, multi-select, and a loading state. It can be wired together with a pagination component.

  • Timeline —— Displays a series of event nodes in chronological order.

  • Tree —— Displays hierarchical data with support for selection, expansion, multi-select, lazy loading, and node drag-and-drop.

  • VirtualList —— Renders large data lists into the viewport window: only visible items (plus a top/bottom buffer) are rendered, with head/tail padding placeholders to support the scroll height, and scroll events throttled via rAF. It is a generic rendering primitive reused by table / tree.

  • Watermark —— A container-level watermark layer that sits on top of the content without intercepting any interaction, suitable for preventing sensitive information from leaking.

Commerce ​

  • Address —— Address book: address editor (contact / region cascade / street address / default flag) + address list (single selection / default badge) + contact-only mode; region data is host-injected.
  • Cart —— Shopping-cart list driven by an items JSON array: item selection with select-all and indeterminate state, built-in quantity stepper with stock clamping, delete by button or swipe, and a selected-items total reported through oas-change.
  • Category —— Linked two-pane category navigation: a multi-level tree on the left, the active category's child grid and product slots on the right, with keyboard tree navigation and controlled highlighting.
  • Coupon —— Coupon card (amount / minimum spend / validity / status colors) plus a selection sheet covering expired, used and not-eligible states.
  • ECard —— E-card / stored-value card purchase: card radio list, custom amount, terms acceptance and confirm; cards and amount bounds are host-injected.
  • Filter —— List page filter loop: sort options (featured / sales / price toggle) + criteria panel (dropdown / half-screen drawer, single- and multi-select groups) + selected-condition chips with per-item undo and one-click reset; conditions JSON dual channel with oas-change.
  • GoodsAction —— Product bottom bar: icon buttons with badges plus main buttons, driven by JSON data.
  • GoodsList —— Product list loop: waterfall (auto / fixed columns, balanced placement into the shortest column by accumulated height) / vertical list; items JSON dual channel renders built-in simple cards with a full-replacement card slot; bottom-reached oas-load-more with loading / no-more states and an empty slot.
  • Invoice —— Invoice information form: personal/company title switching, tax ID validation, invoice content selection and a saved-title picker popup.
  • Logistics —— Delivery timeline: steps JSON dual-channel (newest-first convention, reverse to flip) + current-node highlight (state derived by default) + collapse (latest 2 only) + copy-tracking / copy-address action slots; legal ol/li timeline semantics.
  • MemberCard —— Membership card: grade badge (visible text as the tier identifier, not color-only) + perks slot + validity period + action-button slot; token-based solid / gradient backgrounds that follow dark; purely presentational with zero events.
  • OrderCard —— Order card: order number plus a configurable status badge (semantic tone mapping), item summary, amount area (paid / struck-through original / saved), collapsible details and an actions slot.
  • OrderList —— Order list loop: status tabs (tabs JSON dual-channel + keyboard roving tabindex) + order-card list slot (host supplies order-card / custom cards, no built-in rendering) + bottom-reached load-more (sentinel protocol) + empty state; ships with a hand-assembled tabs + order-card recipe, either-or.
  • Price —— Price formatting: currency, thousands separators, original price, ranges and trend arrows.
  • ProductCard —— Product card: image with a configurable aspect ratio, two-line clamped title, current plus struck-through price, and tags / promo / actions slots in vertical or horizontal layouts.
  • SearchBar —— Mobile search convention: pill input + clear / cancel / search trigger (Enter or button, empty values never fire) + history & hot-keyword slots (persistence owned by the host) + suggestions slot with automatic empty/filled grouping.
  • SKU —— Spec groups and SKU matching with sold-out options, path hints and a quantity stepper.
  • SubmitBar —— Bottom submit bar with an extra area, formatted total and a primary button covering loading, disabled and danger states.
  • TimeSelect — Delivery time selection: a date column (N days from today) plus a slot grid, express and scheduled modes, distinct closed / fully booked states, and roving-tabindex keyboard navigation in both regions.

Conversation ​

  • Attachment —— A conversation attachment card: media (image/thumbnail) + file name/metadata + upload state machine + action buttons (download/remove/open), suited for sending files in conversations, AI chat image attachments, and similar scenarios.
  • Bubble —— A conversation message content surface: a purely presentational content bubble (variants/border/radius/tail decoration + content), without avatar/time/action states; compose with oas-message-row for a complete message, suited for AI chats, IM and natural conversation flows.
  • Marker —— A conversation time/system-event marker: a lightweight text separator for dates, statuses and boundaries, like IM's "Today 10:00" time separator or group-chat "system events"; also fits status separators in AI-style conversations.
  • MessageRow —— A conversation message row (layout shell): header/footer slots carry avatar/name, the default slot embeds oas-bubble, and the footer carries delivery status/actions; supports alignment direction and grouped clustering.
  • MessageScroller —— A conversation scroll container (does not own message data): a scroll-intent model — follow new content while the user is at the bottom (AI style), or always pin to the bottom (IM style); built-in jump button; supports prepend position preservation, async-resource position preservation, turn anchoring (AI "back to the last question"), and optional in-viewport visibility tracking.

Framework Containers ​

  • App —— The host container for imperative APIs such as message / notification / loadingBar. When an app container exists, messages mount inside it (instead of document.body); works well with config-provider.
  • ConfigProvider —— The injection entry point for global configuration, centrally managing locale / size / theme for the wrapped subtree. Component resolution order: own attribute > config-provider > global default.
  • ThemeEditor —— Edit --oas-* theme tokens in real time: color tokens use a color picker, numeric tokens use a number input (displayed without the unit, written back with the original unit). Edits are written to host CSS variables immediately, so the subtree previews them live. By default, tokens are grouped into colors / font sizes / spacing / radius / control heights.

Released under the MIT OR Apache-2.0 License.