image
Akan.js
English
DocsConventionsReferencesCheatsheet
image
Akan.js
Released under the MIT License
Official Akan.js Consulting onAkansoft
Copyright © 2026 Akan.js All rights reserved.
System managed bybassman
CLI Reference
• Commands
• Workspace
• Application
• Library
• Module
• Scalar
• Package
• Page
• Cloud
AkanJS Reference
• akanjs/base
• akanjs/common
• akanjs/constant
• akanjs/fetch
• akanjs/signal
• akanjs/server
• akanjs/client
• akanjs/webkit
UI Reference
• Overview
• Core
• Display
• Forms
• Overlays
• System
CLI Reference
• Commands
• Workspace
• Application
• Library
• Module
• Scalar
• Package
• Page
• Cloud
AkanJS Reference
• akanjs/base
• akanjs/common
• akanjs/constant
• akanjs/fetch
• akanjs/signal
• akanjs/server
• akanjs/client
• akanjs/webkit
UI Reference
• Overview
• Core
• Display
• Forms
• Overlays
• System
Next
Commands

Forms UI

Form components range from high-level `Field.*` controls used in module templates to lower-level `Input`, `Select`, and async `Button` primitives.

Field

High-level form field namespace. It combines labels, descriptions, optional markers, validation-friendly inputs, and many typed controls used inside module templates.
Props / API
NameTypeDescription
label / descstringShown above the control, with desc rendered as help text.
nullablebooleanMarks the label as optional and relaxes validation in many field variants.
Field.Text / Number / DatesubcomponentsCommon scalar field controls.
Field.Parent / ChildrensubcomponentsRelation-oriented controls used by generated model templates.
`libs/shared/ui/Field` wraps and extends `akanjs/ui` Field for project-specific controls such as rich text, maps, and postcode.
Usage

Input

Controlled primitive input namespace. Use it when you need lower-level input control than `Field`, such as custom search boxes or lightweight inline forms.
Props / API
NameTypeDescription
valuestringControlled input value.
onChange(value, event?) => voidReceives the next string value.
validate(value) => boolean | stringReturns true for valid input or an error message.
cacheKeystringPersists text to sessionStorage.
Input.TextArea / Password / EmailsubcomponentsSpecialized input variants.
Usage

Select

Controlled selector that accepts primitive arrays, label/value options, or Akan enum instances. It supports single, multiple, and searchable selection modes.
Props / API
NameTypeDescription
valueT | T[]Selected value, or selected values when multiple is true.
optionsT[] | { label, value }[] | enumOption source.
multiplebooleanEnable multiple selected values.
searchablebooleanShow search input and optionally call onSearch.
renderOption / renderSelected(value) => ReactNodeCustom display renderers.
Usage

Button

Async-aware button with built-in loading, success, and error state. It is useful for actions that return promises and should prevent duplicate clicks while processing.
Props / API
NameTypeDescription
onClick(event, { onError }) => Promise<Result> | ResultAsync-aware click handler.
onSuccess(result) => voidCalled after the success state is shown briefly.
disabledbooleanInherited native button prop; also disabled while loading/success.
Usage
Forms UI
Field
Input
Select
Button