Components
Components
React components wired to your proxies
Command dialogs, forms, tables, and application surfaces that consume Arc’s generated proxies. Components owns its public contracts, semantic parts, and built-in renderer, with optional MUI, PrimeReact 11, and PrimeReact 10 adapters released under the repository’s shared version.
Start here
Section titled “Start here”Install the package, mount the provider, and render your first proxy-driven screen.
Why ComponentsUnderstand what Components adds to Arc-generated command and query contracts.
Choose a component areaStart from the screen job rather than a raw component inventory.
StylingUse the built-in token/theme boundary or an explicitly selected renderer adapter.
Minimal setup
Section titled “Minimal setup”import '@cratis/components/tokens';import '@cratis/components/styles';import '@cratis/components/theme'; // optional built-in baselineimport { CratisComponentsProvider } from '@cratis/components';
export const App = () => ( <CratisComponentsProvider value={{ locale: 'en-US' }} toaster> <YourApp /> </CratisComponentsProvider>);The package root is setup-only: import the provider and configuration helpers there, then import
every component from its explicit subpath, such as @cratis/components/CommandDialog or
@cratis/components/DataTables. The built-in renderer is zero-configuration. Optional renderer
packages are selected explicitly; the application retains their provider, peer, SSR, styling, and
license responsibilities. Read
Renderer adapters and coexistence for the exact nine-slot boundary,
direct vendor coexistence, custom composition, unsupported claims, and licensing policy.
Recipes
Section titled “Recipes”Collect input and execute a command with CommandDialog and CommandForm fields.
Render a query or observable query with DataPage and the data-table wrappers.
Gather information across named stages with StepperCommandDialog.
Build a full screen with rows, dialogs, toolbar actions, and selection details.
Component areas
Section titled “Component areas”Typed fields, forms, dialogs, and multi-step command flows.
Data displayQuery-backed and local-array tables, list pages, filters, and detail surfaces.
Application surfacesDialogs, notifications, dropdowns, display primitives, page chrome, and toolbars.
Structured editorsJSON content, JSON Schema, navigation, canvas, pivot, and time-oriented views.
Relationship to Arc and Chronicle
Section titled “Relationship to Arc and Chronicle”Components consumes generated command/query contracts and React contexts from Arc. Applications may use Arc without Components, and Arc does not require event sourcing. Applications that use Chronicle commonly render its projected read models through these surfaces.
Continue
Section titled “Continue”Package setup, migration guidance, contribution paths, and current limitations.
Components on npmPublished package metadata and versions.
ArcThe CQRS framework whose generated application contracts Components consumes.
ChronicleThe event-sourcing database and runtime behind projected read models.