YouBothAgent▾
You — Business rules and flows you own. Read these yourself.
Both — Know the idea; your agent follows the details.
Agent — Conventions and references your agent follows. Look up as needed.
CLI Reference▾
AkanJS Reference▾
UI Reference▾

akanjs/ui

akanjs/ui is the framework's shared UI package: links, data loading, model CRUD shells, form controls, display helpers, overlays, the in-page agent and the app shell. Every name in this reference imports from that one path.

Every Export

Every value akanjs/ui exports, A to Z. Use it when you know a name but not the page.
  • The label up front is the page. Each description starts with the page that covers that area; click it to go there.
  • A name with its own section links to it. Click the name itself to land on that section.
  • Only here means no page covers the name. The row is the whole documentation.
  • Type-only exports are left out. A type follows the component it describes, and a props interface is in that component's props table.
Agent · The in-page agent namespace, with twelve members.
AgentAttachments
Agent · The attachment chips, drawn in the composer and on each sent message.
Customization · The data-akan-* attributes for a handler passed by reference; spread them on your own control.
AgentProvider
Agent · Hands a subtree one session, passed in or built from a runner; an Agent.Chat inside uses it.
AgentReferences
Agent · The @ reference chips, drawn in the composer and on each sent message.
AgentSession
Agent · The conversation loop that runs in the browser; build one to own the transcript yourself.
agentSessionOf
Agent · Builds an AgentSession from the same options Agent.Chat takes.
System · The react-spring animated elements: div, g and progress.
Display · The status pill.
Customization · The badge's className factory, and a recipe slot.
Overlays · The mobile sheet, half or full height.
Forms · The one button primitive; an onClick that returns a promise turns on its async states.
Customization · The button's className factory, and a recipe slot.
ChatCommands
Agent · The chat's slash-command registry: the whole / menu.
System · A small Suspense boundary for client-only content.
Clipboard
Overlays · A bare copy icon that turns into a check; Copy is the one with a success toast.
System · Doc and Graph: constant models as a schema document and as a relation graph.
Overlays · Wraps a trigger; a click copies text to the clipboard and shows a global success message.
Customization · Makes a framework component resolve through a route's override slot.
CsrImage
Core · Image without the optimizer: a plain img for a CSR-only bundle.
Display · The admin listing screen, in nine parts.
Forms · The browser's native date field, plus RangePicker and TimePicker.
Overlays · The headless dialog namespace that Modal is built on.
DragAction
Only here · A row that reveals a left and a right action when swiped, built from Body, Left and Right.
DraggableList
Only here · A drag-to-sort list with Item and Cursor; Field.TextList is built on it.
Overlays · The row-action menu: a trigger that opens a floating menu.
Overlays · data-dropdown-keep-open: a click on an item carrying it leaves the menu open.
Display · The no-data placeholder.
Agent · The default runner: sends each turn to the app's own runAgentTurn endpoint.
Forms · The form-field namespace: a section wrapper and twenty members.
FontFace
Only here · Adds one ReactFont's @font-face rule in the browser; fonts from .fonts() are already handled.
Agent · A runner that POSTs each turn to a URL you name, streamed or not.
Core · An image from a File model or a URL, served through the Akan optimizer.
InfiniteScroll
Only here · Loads the next batch when a sentinel scrolls into view; reverse prepends and keeps position.
Forms · The text input, plus TextArea, Password, Email, Number and Checkbox.
Customization · The field shell's className factory, and a recipe slot.
KeyboardAvoiding
Only here · Lifts its children above the on-screen keyboard.
Core · The page shell: content containers such as View and frame slots such as Navbar.
Overlays · The previous modal skin, with spring transitions and drag-to-dismiss.
Core · Route-aware navigation, plus Back, Close and Lang.
Core · The fetch-to-React bridge: Units, View, Edit, Pagination, Page, Stream.
Display · Six loading indicators, one per shape of waiting.
maxAttachmentBytesmaxMessageAttachmentBytesmaxMessageAttachments
Agent · The composer's default attachment limits: 4 MB a file, 8 MB and five files a message.
Overlays · A navigation menu built from an item tree.
Overlays · The modal: drive it with open, or hand it a trigger that opens it on click.
Core · The CRUD shells for a generated model store, with fifteen members.
More
Only here · A list footer: infinite scroll on mobile, a pager elsewhere; Load.Units uses it by default.
ObjectId
Only here · A document id cut to its ends, with the full id in a tooltip and a copy button.
OverlayOwnerProviderisOwnOverlayClickOVERLAY_LAYER_ATTRuseOverlayLayerPropsuseOverlayScope
Overlays · How a menu tells a click in an overlay it opened from a click outside.
Customization · Builds the manifest an _overrides.tsx exports; it returns the map unchanged and checks its types.
Display · The pager, taking its numbers as props.
Overlays · A small confirmation before a destructive action.
Overlays · Renders into the host element with the given id, SSR included.
Forms · The radio group, with Item.
Display · A relative time label, with the absolute date in a tooltip.
Customization · The two factories every recipe is built from: recipe(tv({ ... })).
Reference
Agent · Helpers for an @ reference: its token in the draft, its identity and its size cap.
Refresh
Only here · Pull-to-refresh around a scrolling child.
ScreenNavigator
Only here · A swipeable pager across Screens, with NavbarItem; namespace publishes it to the agent.
Forms · The selector: single, multiple or searchable.
SessionContext
Agent · The React context Agent.Zone and AgentProvider hand a session down through.
System · The API explorer, in eight namespaces.
Forms · An on/off toggle, drawn as a role="switch" button.
System · The app shell: Provider, Root and four controls.
System · Tabs split into parts so the panels stay on the server.
Display · Draws rows you already have, with columns and an optional pager.
System · The toast stack System.Provider mounts; you write into it with msg.*.
Forms · A choice drawn as a row of buttons, with Multi.
tokenCount
Agent · Formats a token estimate as a short label: 950, 1.2k, 3.4M.
Overlays · A pure-CSS hint shown on hover or focus.
Customization · Clones a caller's trigger so aria state lands on the real control.
Customization · The provider behind every _overrides.tsx; mount one yourself to override a subtree.
Display · The no-access placeholder, shaped like Empty; you render it yourself.
useAgent
Agent · Reads the enclosing session from a component.
useAgentReference
Agent · Returns a function that puts data a component shows into the draft as an @ chip.
Customization · How a component looks up its own component slot and recipe slot on the current route.

Released under the MIT License

Connect your AI to these docs

MCPhttps://akanjs.com/mcp
Copyright © 2026 Akan.js All rights reserved.System managed bybassman