@runic-artifex/react
appearancere-exportexport { appearance } from '@runic-artifex/views'Re-exported from
appearance.Appearancere-exportexport { Appearance } from '@runic-artifex/views'Re-exported from
Appearance.AppearanceColorSchemere-exportexport { AppearanceColorScheme } from '@runic-artifex/views'Re-exported from
AppearanceColorScheme.AppearanceContrastre-exportexport { AppearanceContrast } from '@runic-artifex/views'Re-exported from
AppearanceContrast.AppearanceSystemColorsre-exportexport { AppearanceSystemColors } from '@runic-artifex/views'Re-exported from
AppearanceSystemColors.BlobRefre-exportexport { BlobRef } from '@runic-artifex/views'Re-exported from
BlobRef.BridgeConnectionHandleinterfaceBridgeConnectionOptionsre-exportexport { BridgeConnectionOptions } from '@runic-artifex/views'Re-exported from
BridgeConnectionOptions.BridgeConnectionStatere-exportexport { BridgeConnectionState } from '@runic-artifex/views'Re-exported from
BridgeConnectionState.BridgeFieldre-exportexport { BridgeField } from '@runic-artifex/views'Re-exported from
BridgeField.BridgeFieldConstraintsre-exportexport { BridgeFieldConstraints } from '@runic-artifex/views'Re-exported from
BridgeFieldConstraints.BridgeFieldKindre-exportexport { BridgeFieldKind } from '@runic-artifex/views'Re-exported from
BridgeFieldKind.CollectionViewportHandleinterfaceCommandHandleinterfacecommitAllFieldsre-exportexport { commitAllFields } from '@runic-artifex/views'Re-exported from
commitAllFields.configureFieldErrorTextre-exportexport { configureFieldErrorText } from '@runic-artifex/views'Re-exported from
configureFieldErrorText.configureTranslatedTextre-exportexport { configureTranslatedText } from '@runic-artifex/views'Re-exported from
configureTranslatedText.createRunicInstancere-exportexport { createRunicInstance } from '@runic-artifex/views'Re-exported from
createRunicInstance.DocumentLocaleOptionsre-exportexport { DocumentLocaleOptions } from '@runic-artifex/views'Re-exported from
DocumentLocaleOptions.FieldBaselinere-exportexport { FieldBaseline } from '@runic-artifex/views'Re-exported from
FieldBaseline.FieldCheckboxPropsinterfaceWhat
useFieldspreads on a checkbox (<input type="checkbox">): a boolean field.FieldDefinitionre-exportexport { FieldDefinition } from '@runic-artifex/views'Re-exported from
FieldDefinition.FieldErrorre-exportexport { FieldError } from '@runic-artifex/views'Re-exported from
FieldError.FieldErrorArgumentsre-exportexport { FieldErrorArguments } from '@runic-artifex/views'Re-exported from
FieldErrorArguments.FieldErrorKindre-exportexport { FieldErrorKind } from '@runic-artifex/views'Re-exported from
FieldErrorKind.FieldErrorReasonre-exportexport { FieldErrorReason } from '@runic-artifex/views'Re-exported from
FieldErrorReason.fieldErrorTextre-exportexport { fieldErrorText } from '@runic-artifex/views'Re-exported from
fieldErrorText.FieldErrorTextre-exportexport { FieldErrorText } from '@runic-artifex/views'Re-exported from
FieldErrorText.FieldHandletype aliasA field bound by
useField: what it shows, the props of its element and its actions.FieldInputPropstype aliasThe props of a field's element:
FieldCheckboxPropsfor a boolean field, otherwiseFieldTextProps.FieldOptionsre-exportexport { FieldOptions } from '@runic-artifex/views'Re-exported from
FieldOptions.FieldStatere-exportexport { FieldState } from '@runic-artifex/views'Re-exported from
FieldState.FieldTextPropsinterfaceWhat
useFieldspreads on an<input>,<textarea>or<select>of any field but a boolean one: the field'stext, written throughinputText(so-and1.survive typing into a number field), and IME composition.FormFieldHandletype aliasA field as
useFormreads it: auseFieldhandle.FormHandletype aliasA form bound by
useForm: its state in this render and its actions, which are the same on every render.FormStatere-exportexport { FormState } from '@runic-artifex/views'Re-exported from
FormState.FormSubmitOptionsre-exportexport { FormSubmitOptions } from '@runic-artifex/views'Re-exported from
FormSubmitOptions.FormSubmitResultre-exportexport { FormSubmitResult } from '@runic-artifex/views'Re-exported from
FormSubmitResult.HostAppearancere-exportexport { HostAppearance } from '@runic-artifex/views'Re-exported from
HostAppearance.export { installBackNavigation } from '@runic-artifex/views'Re-exported from
installBackNavigation.export { installNavigationPath } from '@runic-artifex/views'Re-exported from
installNavigationPath.LatestOperationHandleinterfaceMenuBarEntryre-exportexport { MenuBarEntry } from '@runic-artifex/views'Re-exported from
MenuBarEntry.MenuBarHandleinterfaceMenuBarInvokeResultre-exportexport { MenuBarInvokeResult } from '@runic-artifex/views'Re-exported from
MenuBarInvokeResult.MenuBarItemre-exportexport { MenuBarItem } from '@runic-artifex/views'Re-exported from
MenuBarItem.MenuBarMenure-exportexport { MenuBarMenu } from '@runic-artifex/views'Re-exported from
MenuBarMenu.MenuBarRequestre-exportexport { MenuBarRequest } from '@runic-artifex/views'Re-exported from
MenuBarRequest.MenuBarSeparatorre-exportexport { MenuBarSeparator } from '@runic-artifex/views'Re-exported from
MenuBarSeparator.MenuBarStatere-exportexport { MenuBarState } from '@runic-artifex/views'Re-exported from
MenuBarState.export { navigateBack } from '@runic-artifex/views'Re-exported from
navigateBack.export { NavigationPathChange } from '@runic-artifex/views'Re-exported from
NavigationPathChange.export { NavigationPathOptions } from '@runic-artifex/views'Re-exported from
NavigationPathOptions.export { NavigationReply } from '@runic-artifex/views'Re-exported from
NavigationReply.onAppearancere-exportexport { onAppearance } from '@runic-artifex/views'Re-exported from
onAppearance.onBridgeConnectionre-exportexport { onBridgeConnection } from '@runic-artifex/views'Re-exported from
onBridgeConnection.export { onNavigationPath } from '@runic-artifex/views'Re-exported from
onNavigationPath.export { openNavigationPath } from '@runic-artifex/views'Re-exported from
openNavigationPath.OperationHandleinterfacepageInstancere-exportexport { pageInstance } from '@runic-artifex/views'Re-exported from
pageInstance.QueryCollectionHandleinterfaceRegionCollectionre-exportexport { RegionCollection } from '@runic-artifex/views'Re-exported from
RegionCollection.regionEntriesre-exportexport { regionEntries } from '@runic-artifex/views'Re-exported from
regionEntries.RegionEntryre-exportexport { RegionEntry } from '@runic-artifex/views'Re-exported from
RegionEntry.RegionOutcomere-exportexport { RegionOutcome } from '@runic-artifex/views'Re-exported from
RegionOutcome.RegionOutletsfunctionRenders a
ViewOutletfor the regions of a region collection, each in a<div data-region-key>keyed by the region's key.RegionOutletsModetype aliasHow
RegionOutletsrenders the regions of a collection.RegionOutletsPropsinterfaceRegionPanelAttributestype aliasAttributes that
RegionOutletsmerges onto a region's wrapper, such asid,roleandaria-labelledby.RegionSlotre-exportexport { RegionSlot } from '@runic-artifex/views'Re-exported from
RegionSlot.resolveTextre-exportexport { resolveText } from '@runic-artifex/views'Re-exported from
resolveText.retrySuspenseViewfunctionForgets a failed
useSuspenseViewconnection, so the next render connects again.RunicBlobre-exportexport { RunicBlob } from '@runic-artifex/views'Re-exported from
RunicBlob.RunicInstancere-exportexport { RunicInstance } from '@runic-artifex/views'Re-exported from
RunicInstance.RunicInstanceOptionsre-exportexport { RunicInstanceOptions } from '@runic-artifex/views'Re-exported from
RunicInstanceOptions.RunicInstanceProviderfunctionMakes
instancethe Runic instance of its subtree:useView,useField,useText,useBridgeConnection,useAppearanceand the other hooks below it connect and read through it instead of the page instance.RunicInstanceProviderPropsinterfaceselectedRegionre-exportexport { selectedRegion } from '@runic-artifex/views'Re-exported from
selectedRegion.SuspenseViewHandleinterfaceSuspenseViewOptionsinterfacesyncDocumentLocalere-exportexport { syncDocumentLocale } from '@runic-artifex/views'Re-exported from
syncDocumentLocale.textDirectionre-exportexport { textDirection } from '@runic-artifex/views'Re-exported from
textDirection.TextFieldHandleinterfaceTextFieldViewinterfaceThe View a text field binds to: a
useViewhandle, or any state and client.TextReferencere-exportexport { TextReference } from '@runic-artifex/views'Re-exported from
TextReference.TextTranslationsre-exportexport { TextTranslations } from '@runic-artifex/views'Re-exported from
TextTranslations.uploadre-exportexport { upload } from '@runic-artifex/views'Re-exported from
upload.UploadOptionsre-exportexport { UploadOptions } from '@runic-artifex/views'Re-exported from
UploadOptions.UploadProgressre-exportexport { UploadProgress } from '@runic-artifex/views'Re-exported from
UploadProgress.useAppearancefunctionRenders the page's appearance (
appearancefrom@runic-artifex/views): the colour scheme, contrast and reduced motion of the page's engine combined with the desktop's values that a Runic host pushes (appearance/1), which also carry the text scale, the accent colour and the forced-colours palette.useBridgeConnectionfunctionRenders the page's connection to its .NET host (
connecting,connected,reconnecting,lostorclosed) while the component is mounted, throughonBridgeConnection.useCollectionViewportfunctionFollows a fixed-row-height scroll container and returns the rows to request from .NET.
useCommandfunctionTracks a command's pending state and failure for rendering.
useFieldfunctionBinds an element to one View member while the component is mounted, through
createFieldController: pass a generated descriptor such asEditorFields.title, or any definition withreadandwrite.useFormfunctionOne dirty, pending and valid state over the
useFieldhandles of a component, and asubmitthat writes every field before its command (createFormControllerin@runic-artifex/views):UseFormOptionsinterfaceuseLatestOperationfunctionAdmits only the newest selection, for reads such as "load the selected item": each
run(intent)replaces the queued intent and cancels the active read, and the next read starts only after the previous one has finished (includingwaitForCompletion).useMenuBarfunctionFollows the window's declared menu bar (Runic Desktop's
DesktopMenuBarPresentation.Page) while the component is mounted, as headless state for the application's own menubar component, throughcreateMenuBarController.UseMenuBarOptionsinterfaceuseOperationfunctionTracks Start admission, pending work, cancellation and terminal feedback of a generated
start<Command>()operation for rendering.useQueryCollectionfunctionFollows a scroll container for a query collection (
client.queries.{name}): it loads the rows the container shows from .NET, with placeholders until they arrive, and lays them out with variable heights.useRunicInstancefunctionThe Runic instance of the calling component: that of the nearest
RunicInstanceProvider, or the default instance (defaultInstance()): the page instance, or in a component bundle its element's.useSuspenseViewfunctionSuspends the component until a generated View reference connects, then renders its state.
useTextfunctionRenders a text reference that a ViewModel produced, such as a status line or a validation message's
text, in the window's language (resolveText), and renders again when the language changes.useTextFieldfunctionBinds a controlled text input to one member of a View while the component is mounted, through
createTextFieldController.UseTextFieldOptionsinterfaceuseTextLocalefunctionRenders the locale that text is shown in (
textLocale: the page's Translations locale, which follows the window's locale), and renders again when it changes.useViewfunctionConnects a generated View reference for the lifetime of the component and renders its state through
useSyncExternalStore.UseViewOptionsinterfaceuseViewStatefunctionRenders one selected part of a View's state and re-renders only when that part changes, by
isEqual(Object.isby default), likeuseSyncExternalStoreWithSelector.useWindowLocalefunctionRenders the window's locale that the application set (
IRunicWindowLocalein .NET), ornullwhile it sets none, for example to setlangon an element.ViewHandleinterfaceViewOutletfunctionRenders the registered component for a generated View reference and passes the reference as its
pageprop.ViewOutletPropsinterfaceViewRegistrytype aliasA build-known map checks each generated reference kind against its component's
pageprop.windowLocalere-exportexport { windowLocale } from '@runic-artifex/views'Re-exported from
windowLocale.
@runic-artifex/react/experimental
HostedRegionSizingre-exportexport { HostedRegionSizing } from '@runic-artifex/views'Re-exported from
HostedRegionSizing.HostedRegionStatere-exportexport { HostedRegionState } from '@runic-artifex/views'Re-exported from
HostedRegionState.RunicHostedRegionfunctionA region where the host application shows a hosted guest's Window (
<runic-hosted-region>), in a frame the page never gets a reference to:RunicHostedRegionElementre-exportexport { RunicHostedRegionElement } from '@runic-artifex/views'Re-exported from
RunicHostedRegionElement.RunicHostedRegionPropsinterfaceProps of
RunicHostedRegion.