@marktiderman/genesis
0.11.11Primitive · CoreGenesis — one-install umbrella and single version coordinate for the Genesis system. Re-exports @marktiderman/genesis-core, -ui, -design-system, -switchboard, -ui-native (as /native) and -native (as /native-app and /native-app/persist) and the forms packages (as /forms, /forms/server, /forms/destinations, /forms/react, /forms/web) via subpath exports and exact-pins each to a reproducible set. Holds no code of its own; each granular package remains independently installable.
One-install umbrella for the Genesis DS (design system). Holds no code of its own — every subpath re-exports a granular `@marktiderman/genesis-*` package.
Web bundlers never pull in React Native code unless a consumer explicitly imports `@marktiderman/genesis/native` or `/native-app` — `react-native` is an optional peer dependency. Each granular package remains independently installable as an escape hatch for rare subpaths not mirrored here.
pnpm add @marktiderman/genesisComponents (5)
- AppearancePreferencesProviderBeta
Serves a person's appearance and density to the tree, resolved in the written order. Reads the store once on mount (and on its `subscribe`), keeps a copy on the device, and writes both when the person changes a value.
- DataProviderRoot
- GenesisProvider
Convenience root: a `QueryClientProvider`, storage, and a data provider (yours, or a mock built from datasets). It creates its own `QueryClient` unless you pass `queryClient`; an app that already has one should pass it, or mount `DataPro...
- ViewerScope
Keeps one viewer's cached data from ever showing to the next. Children render only once the viewer is known, under a key of that viewer, so a sign-out or a new person signing in unmounts every screen and its queries before the cache is e...
- WorkspaceScopeBeta
`ViewerScope` for an app with workspaces: use it in place of `ViewerScope`. It reads the current workspace from the URL and scopes everything under it to that workspace (its `scope`, `roles` and `timeZone`), so every view with `scope: ["...
Hooks (28)
- useAggregate
Totals over a resource's rows (count, and sum, average, lowest or highest of a field), through the data provider: its `aggregate`, or `resolveAggregate`'s fallback. Cached under the resource's key, so any write to the resource through Ge...
- useAppearancePreferences
The person's appearance and density, resolved, with setters. Throws outside an `AppearancePreferencesProvider`; a component that works with or without one reads `useOptionalAppearancePreferences`.
- useBoardColumns
Load a board: one request per column page, each with the shared filters, sort and search plus the column's value. Columns page on their own (`loadMore`), and the pages a column has loaded reset when the filters, sort or search change.
- useCapabilities
What the data provider can do for `resource` (`provider.capabilities`), cached per provider and resource. `data` stays undefined for a provider that doesn't report capabilities, so a UI keeps its defaults.
- useDataProvider
- useDraft
Autosave one draft row: saved a moment after each change, one write at a time, added on the first save that has something in it, merged into a row another tab started (`adopt`), and started again when the server's copy wins (`revision`)....
- useInfiniteResource
- useLinkOptions
The rows a link can point at, for a picker: listed through the data provider with `filters`, searched on the server with `search` across `searchFields` (else the naming field), sorted by `orderBy` (else the naming field) then the key, `p...
- useListState
A list's state, held for one list (ADR 0017): from the URL when it has one, and the person's store. The URL follows each change (replacing the entry: a filter isn't a page) and the state follows the URL back (Back, Forward, a link to the...
- useLiveInvalidation
Subscribes while mounted and `enabled`, and invalidates `queryKey` (a prefix) once per burst of events that `accept` lets through. While the page is hidden the queries are only marked stale; they refetch when it is shown again (TanStack ...
- useOne
Fetch a single record by id, powered by TanStack Query.
- useOptionalAppearancePreferences
Like `useAppearancePreferences`, but null outside a provider: for a component (a shell, a theme provider) that keeps its own behaviour when an app hasn't set preferences up.
- useOptionalDataProvider
The data provider when there is one, else null: for a screen that also works over rows it was given (a `ResourceView` with `rows`), where nothing is read or run through a provider.
- useOptionalViewerScope
Like useViewerScope, or null outside a ViewerScope.
- usePersistedUiState
- useRelationLabel
A linked row's words for a `relation` cell: `undefined` while they load, `null` when there are none (the row is hidden from this viewer, gone, unnamed, or the read failed), so a screen shows its own words then, never the raw id. Cached p...
- useResource
- useResourceForm
- useSegmentCounts
Each segment's row count for a view's list (ADR 0017), for the segments that ask for one (`count: true`): the list's other filters (scope, the screen's, the declared filters) plus the segment's own, counted through the provider (estimate...
- useStorage
- useUnsavedChangesGuard
Warns before unsaved changes are lost, without depending on a router.
- useViewBoard
A view's rows as board columns, with moves:
- useViewCalendarRange
A view's rows in one calendar window, for a screen that places them itself (a custom view, ADR 0019). ResourceCalendar loads its rows through it.
- useViewer
The viewer for guards: `{ id, scope, roles }` from the nearest ViewerScope, or {@link NO_VIEWER} without one. The object is stable while those are equal by value, so it can sit in a memo's dependencies.
- useViewerScope
The viewer and scope from the nearest `ViewerScope`. Throws without one: screens that cache per viewer need it.
- useWizard
- useWorkspace
The nearest `WorkspaceScope`'s workspaces, or null outside one.
- useWrite
A one-off write that isn't a resource page's create, update or remove: a database function, `createOrAdopt`, several writes in a row. It invalidates what it made stale and reports failures in plain words.
Other exports (73)
aggregateProblems · APPEARANCES · blankValues · BOARD_NONE · BOARD_PAGE · boardColumnFilter · buildArrayItemDefaults · CALENDAR_LIMIT · callRpc · classifyError · clearViewerCache · createLocalStorageAdapter · createMemoryStorageAdapter · createMockProvider · createNoopStorageAdapter · createOrAdopt · createSupabaseProvider · DataReadError · DataWriteError · decodeRecordKey · DEFAULT_DRAFT_DELAY_MS · DEFAULT_LIVE_DEBOUNCE_MS · DEFAULT_LIVE_RESYNC_MS · DEFAULT_RPC_MESSAGES · DEFAULT_UNDO_DELAY_MS · DEFAULT_UNSAVED_CHANGES_MESSAGE · defaultErrorReporter · defineAppearancePreferences · defineQueryKeys · defineResource · DENSITIES · DRAFT_NOT_SAVED · DraftController · dropPendingWrites · encodeRecordKey · errorMessages · fieldControl · fieldErrorsFromPostgrest · flushPendingWrites · GENESIS_APPEARANCE_DEFAULTS · getErrorReporter · isAppearance · isDataReadError · isDataWriteError · isDensity · isNetworkFailure · isSafeUrl · keyFields · loadRelationLabel · NO_ROWS_MATCHED · NO_VIEWER · normalizeLinkUrl · pendingWriteCount · readFailureMessage · readOutcomeFromCode · relationNamingField · rememberedWorkspaceId · reportError · requireDataProvider · resolveAggregate · resolveAppearancePreferences · resourceKeys · RPC_FAILED · scopeClock · setErrorReporter · stableJson · titleCase · toAggregateValues · toAppearancePreferenceValues · toDataWriteError · WRITE_FAILED · writeConflict · writeOutcomeFromCode
And 159 types.
Components (72)
- AccessibleIconBeta
AccessibleIcon — gives a decorative icon an accessible name.
- AuthFormBeta
The web sign-in form. See the file's header.
- Badge
- BandBeta
Band: a full-bleed, full-width marketing section. The background runs edge to edge; the content sits in a centered column with the page gutter. It is what a landing page is made of: a hero, a features band, a call to action, a footer.
- BandLeadBeta
- BannerBeta
Banner — a full-width system message across the top of a page ("You're offline"): the twin of genesis-ui-native's NativeBanner. It stays until dismissed or until its condition clears, and is announced politely. For a passing confirmation...
- BuilderLayoutBeta
BuilderLayout — the three columns of a builder: an outline of the parts on the left, the editor for the selected part in the centre, a live preview on the right.
- ButtonStable
Button — primary interactive control. Variants: default, secondary, outline, ghost, destructive, link, gradient (the brand's `gradients.primary`, else the primary).
- ButtonGroup
- ChartTooltipContent
- ChipGroupBeta
ChipGroup — filter chips that toggle together: the twin of genesis-ui-native's NativeChipGroup, with the same `mode` (default `multiple`), `value` and `onChange`; `onChange` gets a string in `single` mode and a list in `multiple`.
- ChipGroupItem
One chip of a ChipGroup: the group's toggle item, drawn as the Chip.
- ChoiceCardBeta
ChoiceCard — one option as a card a person picks (a plan, a class, an answer with a picture): the twin of genesis-ui-native's NativeChoiceCard, with the same `title`, `description`, `media`, `multiple`, `invalid` and `disabled`.
- ComboboxBeta
Combobox — pick one option from a list you can search: the twin of genesis-ui-native's NativeCombobox, built from Command in a Popover. The trigger is a button that opens a listbox; the search box inside is the combobox (arrow keys move,...
- CommandPalette
Thin action registry over `CommandDialog` / cmdk. Consumers register flat commands; optional `group` buckets them.
- ComposerBar
- ContainerBeta
Container — the page gutter: a centered column with a named maximum width and responsive side padding.
- DashboardPageBeta
DashboardPage — a stat row over a flexible region of charts, tables and sections.
- DatePicker
- DetailPageBeta
DetailPage — one record's full view: a title row with actions, a primary content region, and a metadata sidebar that drops below the content on small screens.
- DisplayBeta
Display: a heading in the marketing type scale (`displayVariants`).
- DocumentPageBeta
DocumentPage — a page that reads like a document: an optional cover across the top, an icon, a large title and the body in a centred reading column, as in a notebook app. The page template for writing (notes, a journal entry, a guide, a ...
- EmptyStateBeta
EmptyState — what to show when a list, page, or panel has no data.
- FormPageBeta
FormPage — a titled form: header, validation summary, a body of sections, and a sticky action bar.
- GalleryCardBeta
GalleryCard — a cover image with badges and actions overlaid, and a title/subtitle footer. The media-first card that galleries, libraries and course lists all draw: `Card` + `AspectRatio` + the two overlay slots.
- GalleryGridBeta
GalleryGrid — a wall of images, justified (rows that fill the width, as `justifyRows` packs them) or a plain equal-column grid, optionally grouped under sticky headers.
- GridBeta
Grid — two-dimensional flow for card and tile collections.
- InboxLayout
- InboxPage
- InboxRowMenu
A row's actions as the web offers them: a More button at the row's end opening a menu, the twin of the phone's swipe and long-press menu. InboxPage's default row draws it; a row of your own (the `row` slot) draws it the same way. Nothing...
- InboxViews
- InlineAlertBeta
InlineAlert — a message that sits with what it is about (between form fields, over a list): the twin of genesis-ui-native's NativeInlineAlert, with the same variants (info, success, warning, destructive), dismiss, content and actions. It...
- InputGroup
- Kbd
- LightboxBeta
Lightbox — a full-screen image viewer over the page, built on `Dialog`.
- LiveIndicatorBeta
LiveIndicator — the "● Live" chip for streams, classes and sessions that are happening now. The dot pulses while live; idle it goes muted and still, offline fainter still, so the state reads at a glance as well as by colour. `detail` car...
- NotificationsPageBeta
NotificationsPage — a person's notifications under day headings (Upcoming, Today, Yesterday, Earlier), unread ones marked, with Mark all read: the twin of genesis-ui-native's NotificationsPage, with the same `items`, `onMarkAllRead` and ...
- NumberInputBeta
NumberInput — a number with − and + buttons: the twin of genesis-ui-native's NativeNumberInput, with the same `value`, `min`, `max`, `step` and `precision`. The field is a `spinbutton` (↑ and ↓ step it, Page Up and Page Down by ten steps...
- PageLoadingBeta
PageLoading — full-page or in-section loading state: a centered `Spinner` with an optional message. The loading-state counterpart to `EmptyState`. Reach for `Skeleton` instead when the placeholder should mimic the shape of the content th...
- PasswordToggleFieldExperimental
PasswordToggleField — a password input with a show/hide control that keeps focus and caret position across the toggle.
- PasswordToggleFieldIconExperimental
PasswordToggleFieldIcon — the SVG-level variant of `PasswordToggleFieldSlot`.
- PasswordToggleFieldInputExperimental
PasswordToggleFieldInput — the field itself.
- PasswordToggleFieldSlotExperimental
PasswordToggleFieldSlot — renders one of two nodes depending on visibility.
- PasswordToggleFieldToggleExperimental
PasswordToggleFieldToggle — the show/hide button.
- RangeSliderBeta
RangeSlider — two thumbs on one track, for a range (a price band, an age range): the twin of genesis-ui-native's NativeRangeSlider, with the same `value: [low, high]` and `onChange`.
- RatingBeta
Rating — a row of stars, read-only or interactive.
- ResourceHeader
The header of a page that edits one publishable thing (a form, a course, a lesson, a worksheet): the breadcrumb ("Courses › name"), the title once, its status and save-state chips, and on the right undo and redo, Preview, Share and Publi...
- SectionBeta
Section — a titled region of a page: heading, optional description, optional trailing actions, and the content itself.
- SettingsPage
- SettingsRowBeta
SettingsRow — label + description on one side, an arbitrary trailing control (Switch, Select, Button, Badge, ...) on the other. This is the shared layout behind every settings/preferences list row; see `ToggleRow` for the common label+de...
- Slider
- SortableListBeta
A vertical list the user can rearrange: course steps, lesson blocks, form fields.
- Spinner
- SplitBeta
Split — the master-detail layout: two panes side by side above a breakpoint, stacked below it.
- StackBeta
Stack — one-dimensional flow. The single most-repeated shape in any application: a run of things in a line, evenly spaced.
- StatusBadgeBeta
Status-specific badge for progress/health states — the OKR-style "on track / at risk / off track" goal vocabulary plus common task-lifecycle states ("done", "blocked", "in progress").
- StepperBeta
Stepper — where a person is in a flow of steps (onboarding, a checkout, a form in steps): the twin of genesis-ui-native's NativeStepper, with the same `steps` and `current`. Done steps show a check, the current one is marked (`aria-curre...
- Table
- ThreadList
A conversation's list. See the module docs.
- ThreadPage
- TierBadge
- TimePickerBeta
TimePicker — a time of day, picked from a list or typed: the twin of genesis-ui-native's NativeTimePicker. Its `value` is a `Date` (the day is kept, as NativeTimePicker's) or an "HH:MM" string (a time of day alone, as `<input type="time"...
- ToggleRowBeta
ToggleRow — `SettingsRow` pre-wired with a `Switch`: the common label+description+on/off row for settings and preferences UI.
- ToolbarBeta
Toolbar — a grouped set of controls that behaves as ONE tab stop.
- ToolbarButtonBeta
ToolbarButton — a button that participates in the toolbar's roving tabindex.
- ToolbarLinkBeta
ToolbarLink — an anchor inside the toolbar's roving tabindex.
- ToolbarSeparatorBeta
ToolbarSeparator — a decorative divider between toolbar groups.
- ToolbarToggleItemBeta
ToolbarToggleItem — one member of a `ToolbarToggleGroup`.
- TooltipStable
Tooltip — hover/focus hint anchored to its trigger child.
- UserAvatarBeta
UserAvatar — canonical user-identity avatar. Shows the person's photo when `src` is set and loads successfully; otherwise (including a failed image load — Radix's Avatar swaps to the fallback automatically) it falls back to initials comp...
- VisuallyHiddenBeta
VisuallyHidden — content removed from the visual layout but kept in the accessibility tree.
- WhatsNewSheetBeta
WhatsNewSheet — a release's notes after an update, in a dialog: the twin of genesis-ui-native's NativeWhatsNewSheet, with the same `notes`, `dismiss`, `onOpenNote` and labels. On a phone-width screen it rises as a sheet (`mobileLayout="s...
Hooks (3)
- useBrowserSearchParams
Browser-native {@link SearchParamsAdapter} built on the History API. Reads the current query string and writes updates via `pushState`/`replaceState`, staying reactive to `popstate` events. No router required.
- useCommandPaletteHotkey
Toggle a command palette with Cmd/Ctrl+K. Returns `[open, setOpen]` — pass into `<CommandPalette open onOpenChange />`.
- useUiMessages
The catalogue in effect: English unless a `UiMessagesProvider` says otherwise.
Other exports (271)
Accordion · AccordionContent · AccordionItem · AccordionTrigger · Alert · AlertDescription · AlertDialog · AlertDialogAction · AlertDialogCancel · AlertDialogContent · AlertDialogDescription · AlertDialogFooter · AlertDialogHeader · AlertDialogOverlay · AlertDialogPortal · AlertDialogTitle · AlertDialogTrigger · AlertTitle · alertVariants · AspectRatio · AUTH_PROVIDER_NAMES · Avatar · AvatarFallback · AvatarImage · bandVariants · Breadcrumb · BreadcrumbEllipsis · BreadcrumbItem · BreadcrumbLink · BreadcrumbList · BreadcrumbPage · BreadcrumbSeparator · Calendar · CalendarDayButton · Card · CardContent · CardDescription · CardFooter · CardHeader · CardTitle · Carousel · CarouselContent · CarouselItem · CarouselNext · CarouselPrevious · ChartContainer · ChartLegend · ChartLegendContent · ChartStyle · ChartTooltip · Checkbox · Chip · cn · Collapsible · CollapsibleContent · CollapsibleTrigger · Command · CommandDialog · CommandEmpty · CommandGroup · CommandInput · CommandItem · CommandList · CommandSeparator · CommandShortcut · containerVariants · ContextMenu · ContextMenuCheckboxItem · ContextMenuContent · ContextMenuGroup · ContextMenuItem · ContextMenuLabel · ContextMenuPortal · ContextMenuRadioGroup · ContextMenuRadioItem · ContextMenuSeparator · ContextMenuShortcut · ContextMenuSub · ContextMenuSubContent · ContextMenuSubTrigger · ContextMenuTrigger · dayLabel · DEFAULT_GALLERY_RATIO · defaultLightboxLabels · DefaultLink · defaultNavigate · Dialog · DialogClose · DialogContent · DialogDescription · DialogFooter · DialogHeader · DialogOverlay · DialogPortal · DialogTitle · DialogTrigger · displayVariants · Drawer · DrawerClose · DrawerContent · DrawerDescription · DrawerFooter · DrawerHeader · DrawerOverlay · DrawerPortal · DrawerTitle · DrawerTrigger · DropdownMenu · DropdownMenuCheckboxItem · DropdownMenuContent · DropdownMenuGroup · DropdownMenuItem · DropdownMenuLabel · DropdownMenuPortal · DropdownMenuRadioGroup · DropdownMenuRadioItem · DropdownMenuSeparator · DropdownMenuShortcut · DropdownMenuSub · DropdownMenuSubContent · DropdownMenuSubTrigger · DropdownMenuTrigger · embedSnippet · fillMessage · FollowUpList · formatInboxTime · FormDescription · FormError · FormField · FormLabel · GALLERY_DEFAULTS · galleryItemRatio · GAP_CLASSES · gridVariants · H1 · H2 · H3 · H4 · HeadlineNumbers · HoverCard · HoverCardContent · HoverCardTrigger · Input · InputGroupInput · InputGroupPrefix · InputGroupSuffix · InputOTP · InputOTPGroup · InputOTPSeparator · InputOTPSlot · isPathActive · justifyRows · Label · Large · Lead · leadVariants · Menubar · MenubarCheckboxItem · MenubarContent · MenubarGroup · MenubarItem · MenubarLabel · MenubarMenu · MenubarPortal · MenubarRadioGroup · MenubarRadioItem · MenubarSeparator · MenubarShortcut · MenubarSub · MenubarSubContent · MenubarSubTrigger · MenubarTrigger · Muted · NavigationMenu · NavigationMenuContent · NavigationMenuIndicator · NavigationMenuItem · NavigationMenuLink · NavigationMenuList · NavigationMenuTrigger · navigationMenuTriggerStyle · NavigationMenuViewport · nextRating · NoFeaturesFound · NoFeedbackFound · NoSearchResults · P · pageLoadingVariants · Pagination · PaginationContent · PaginationEllipsis · PaginationItem · PaginationLink · PaginationNext · PaginationPrevious · Popover · PopoverContent · PopoverTrigger · prefilledUrl · Progress · RadioGroup · RadioGroupItem · readinessChip · ReadinessChip · readinessOf · readReceiptFor · renderSlot · ResizableHandle · ResizablePanel · ResizablePanelGroup · resolveNavigation · resolveNavigationZones · resolveUiMessages · ResourceSettingsPage · ResponsesToolbar · SAVE_STATE_LABEL · ScrollArea · sectionHeadingVariants · Select · SelectContent · SelectGroup · SelectItem · SelectScrollDownButton · SelectScrollUpButton · SelectTrigger · SelectValue · Separator · SettingsSection · ShareDialog · Sheet · SheetClose · SheetContent · SheetDescription · SheetFooter · SheetHeader · SheetOverlay · SheetPortal · SheetTitle · SheetTrigger · Skeleton · Small · spaceScale · splitVariants · stackVariants · statusBadgeVariants · SummaryCard · Switch · TableBody · TableCaption · TableCell · TableFooter · TableHead · TableHeader · TableRow · Tabs · TabsContent · TabsList · TabsTrigger · Textarea · THREAD_AT_BOTTOM_PX · toast · Toaster · Toggle · ToggleGroup · ToggleGroupItem · toggleVariants · ToolbarToggleGroup · toolbarVariants · touchTarget · UiMessagesProvider · userAvatarVariants
And 82 types.
Other exports (5)
cn · formatDate · formatRelativeTime · relativeTime · touchTarget
And 3 types.
Other exports (11)
allStatusColors · changelogTypeColors · feedbackStatusColors · getCoverageColor · getCoverageTextColor · ideaStatusColors · prdStatusColors · productStatusColors · researchActionColors · syncStatusColors · taskStatusColors
Components (1)
- CommandPalette
Thin action registry over `CommandDialog` / cmdk. Consumers register flat commands; optional `group` buckets them.
Hooks (15)
- useCommandPaletteHotkey
Toggle a command palette with Cmd/Ctrl+K. Returns `[open, setOpen]` — pass into `<CommandPalette open onOpenChange />`.
- useDataFilters
- useIsMobile
Whether the viewport is narrower than the mobile breakpoint (768px). The server renders desktop.
- useKeyboardNavigation
- useOne
Fetch a single record by id, powered by TanStack Query.
- useReducedMotion
Whether the person asked their device for less motion (`prefers-reduced-motion: reduce`), kept current as they change it. A custom view that animates (a leaderboard's rows sliding into place) skips or shortens the animation when it's tru...
- useResource
- useResourceForm
- useResourcePage
- useResourceTable
The list behind {@link ResourcePage}, without any markup: where the rows come from (a `resource` through the data provider, or `data` you pass), search, sort, status filter and paging, selection, the open record (and its URL state), the ...
- useResourceUrlState
A list's peek, page, sort and search, kept in the URL through any {@link SearchParamsAdapter} (the browser's, React Router's or TanStack Router's). The URL is the source of truth: a copied link reopens the same record on the same page, a...
- useSavedViews
Persist `DataFilters` saved-view shape in the app's storage (localStorage on the web), through usePersistedUiState: SSR-safe, and in step across every list on the same key.
- useViewPreference
- useViewSettings
- useWizard
Other exports (1)
createPrefetch
And 29 types.
Components (1)
- GenesisThemeProvider
Hooks (2)
- useOptionalTheme
- useTheme
Other exports (128)
APP_BRAND_PAIRS · appBrandContrastProblems · appBrandCss · appBrandVariables · appStyleCss · appStyleVariables · arenaBrand · arenaStyle · borderRadius · brandContrastProblems · brandExtraVariables · brandGradientCss · brandRoleVariables · CHAT_ACCENTS · CHAT_ROLES · checklistBrand · checklistStyle · clampBounds · classicDesignSystem · COMPONENT_TOKENS · componentTokenCss · componentTokenProblem · composite · contrast · CORNER_RADII · CORNERS · crispDesignSystem · cubicBezierCss · debugBrandPreset · DEFAULT_DESIGN_SYSTEM_ID · DEFAULT_EYEBROW · DEFAULT_FONT_CLASS_RULES · DEFAULT_LEADING · DEFAULT_RAMP · defineAppBrand · defineAppStyle · defineDesignSystem · DENSITIES · DENSITY_LEVELS · DENSITY_LEVELS · designSystemTheme · fluid · FONT_CHOICES · FONT_CLASSES · FONT_IDS · fontFamily · fontFileKey · fontForStack · fontSize · fontWeight · generateDarkTheme · generateLightTheme · GENESIS_THEME_V2 · genesisBrand · genesisColors · genesisTheme · getComponentToken · getDesignSystem · getStarterBrand · getStarterStyle · getThemePart · GROUNDS · hexToHslTriplet · hexToOklch · IMAGE_FILTERS · isColorScale · journalBrand · journalStyle · LATIN_UNICODE_RANGE · listDesignSystems · maxChroma · MOTION_DURATIONS · MOTION_EASINGS · MOTION_LEVELS · MOTION_SPRINGS · motionCssVariables · neutral · NEUTRAL_DESIGN_SYSTEMS · NO_SHADOW · notebookBrand · notebookStyle · oklchToHex · palette · parsePartSelector · pressBrand · pressStyle · ramp · RAMP_STEPS · readGenesisThemeV2Flag · registerDesignSystem · relativeLuminance · renderAppStylesCss · repositoryBrand · repositoryStyle · resolveChatRoles · resolveChoices · resolveDensity · resolveDensity · resolveMotion · resolveThemeRoles · resolveTokens · rolePairs · SCRIMS · SELF_HOSTED_FONTS · semantic · SHADOW_LEVELS · softDesignSystem · spacing · STARTER_BRANDS · STARTER_STYLES · status · tailwindFromBrand · THEME_FONTS · THEME_PARTS · THEME_ROLES · THEME_ROLES · THEME_TOKEN_NAMES · themeFromBrand · themeToCss · trackerBrand · trackerStyle · TYPE_STEPS · unregisterDesignSystem · validateAppBrand · validateAppStyle · validateBrand · validateDesignSystem · validateDesignSystemChoice
And 86 types.
Other exports (24)
borderRadius · CHAT_ACCENTS · CHAT_ROLES · cubicBezierCss · fontFamily · fontSize · fontWeight · generateDarkTheme · generateLightTheme · MOTION_DURATIONS · MOTION_EASINGS · MOTION_SPRINGS · motionCssVariables · nativeThemeDark · nativeThemeLight · neutral · resolveChatRoles · resolveMotion · resolveThemeRoles · semantic · spacing · status · THEME_ROLES · themeToCss
And 15 types.
Components (1)
- GenesisThemeProviderBeta
The person's **appearance**: light, dark or system (the glossary's word; the props keep their older `mode` names). It is the person's choice, never an app brand's, style's or theme's: pass it controlled from where the person's choice is ...
Hooks (2)
- useOptionalTheme
Read the active theme from the nearest `<GenesisThemeProvider>`.
- useTheme
The theme, or throws outside a `<GenesisThemeProvider>`. A primitive that should still render without one uses {@link useOptionalTheme}.
Other exports (3)
GENESIS_THEME_V2 · readGenesisThemeV2Flag · resolveTokens
And 7 types.
Other exports (30)
AIRTABLE_BASE_ID · AirtableAdapter · asWritable · CodeAdapter · driftReport · featuresAirtableMap · featuresContract · featuresSupabaseMap · gitdataMdContract · gitdataResourceName · inferFieldType · introspectFields · isMergeBinding · LEVEL_LABEL · LEVELS · markStale · NotionAdapter · promote · propagateStale · PROVIDER_LEVEL · ReadOnlyAdapterError · reconcileModel · Registry · staleInfo · SupabaseAdapter · Switchboard · ticketsAirtableMap · ticketsContract · ticketsSupabaseMap · UnknownResourceError
And 43 types.
Other exports (4)
attachGitdata · GitdataAdapter · gitdataMdContract · gitdataResourceName
And 3 types.
Other exports (1)
createSwitchboardProvider
Components (138)
- AppleSignInButton
Apple's branded button, full width. Renders nothing off iOS.
- AuthBranding
- AuthForm
- AuthScreen
- Box
- BrandExtensionsProvider
- DashboardPage
- DetailPage
- DocumentPage
- FormPage
- GenesisModulesProvider
Pass the optional native modules the app has installed. Nested providers merge: an inner one adds to or replaces what an outer one gave. Define the `modules` object once at module scope (as the starter's `src/lib/native-modules.ts` does)...
- Grid
- InboxPage
- Inline
- NativeAccordion
- NativeAccordionContent
- NativeAccordionItem
- NativeAccordionTrigger
- NativeAlert
- NativeAlertDescription
- NativeAlertTitle
- NativeAvatar
- NativeBadge
- NativeBanner
- NativeBulkBar
- NativeButton
- NativeButtonGroup
- NativeCalendar
- NativeCard
- NativeCardTitle
- NativeCarousel
- NativeChartContainer
- NativeCheckbox
- NativeChip
- NativeChipGroup
- NativeChoiceCard
- NativeCombobox
- NativeComposerBar
- NativeContextMenu
- NativeDatePicker
- NativeDialog
- NativeDialogContent
- NativeDialogDescription
- NativeDialogFooter
- NativeDialogHeader
- NativeDialogTitle
- NativeDrawer
- NativeDropdownMenu
- NativeDropdownMenuContent
- NativeDropdownMenuItem
- NativeDropdownMenuTrigger
- NativeEmptyState
- NativeFollowUpList
- NativeFullScreenModalBeta
- NativeGalleryCard
- NativeGalleryGrid
- NativeGlassSurface
- NativeHeaderCard
- NativeHeadlineNumbers
- NativeIcon
- NativeImage
- NativeInlineAlert
- NativeInput
- NativeInputGroup
- NativeInputOTP
- NativeLabel
- NativeLightbox
- NativeListItem
- NativeLiveIndicator
- NativeLoadingState
- NativeNumberInput
- NativePagination
- NativePasswordToggleField
- NativePopover
- NativePopoverContent
- NativePopoverTrigger
- NativeProgress
- NativeRadioGroup
- NativeRadioGroupItem
- NativeRangeSlider
- NativeRating
- NativeReadinessChip
- NativeRefreshControl
- NativeResourceSettingsPage
- NativeResponsesToolbar
- NativeRowActions
- NativeSearchBar
- NativeSectionListHeader
- NativeSegmentedControl
- NativeSelect
- NativeSelectContent
- NativeSelectItem
- NativeSelectTrigger
- NativeSeparator
- NativeSettingsRow
- NativeShareSheet
- NativeSheetBeta
- NativeSheetProviderBeta
Opts every `NativeSheet` below it into `@gorhom/bottom-sheet` and mounts the library's `BottomSheetModalProvider`. A module missing any export the sheet needs is reported with `console.error` and ignored, so sheets fall back to the nativ...
- NativeSkeleton
- NativeSlider
- NativeSortableList
- NativeStatCard
- NativeStatusBadge
- NativeStepper
- NativeSummaryCard
- NativeSwipeRow
- NativeSwitch
- NativeTabBar
- NativeTabs
- NativeTabsContent
- NativeTabsList
- NativeTabsTrigger
- NativeText
- NativeTextarea
- NativeThreadList
A conversation's list. See the module docs.
- NativeTierBadge
- NativeTimePicker
- NativeToastProvider
- NativeToggle
- NativeToggleRow
- NativeTooltip
- NativeTooltipContent
- NativeTooltipTrigger
- NativeUserAvatar
- NativeWhatsNewSheet
- NativeWorkspaceSwitcher
- NativeZoomablePhoto
The page: iOS's zooming scroll view, or Android's pinch and pan.
- NavBarSaveButton
- NavBarSearchBar
Inline search input meant to occupy the title slot on a search results screen. For a sticky search-below-the-header pattern, prefer the standalone <NativeSearchBar> primitive.
- NavBarTitle
- NotificationsPage
- ScreenContainer
- SettingsPage
- SettingsSubPage
- SocialAuthRow
- Stack
- TabBarVisibilityProvider
Holds whether the tab bar is hidden, for the tab navigator it wraps.
- ThreadPage
Hooks (17)
- useGenesisExtension
Read an extension scale by key. Returns `undefined` when the provider isn't mounted OR when the key isn't declared on the brand. The return type follows the consumer's augmented `BrandExtensions[K]`.
- useGenesisModules
The modules given to the nearest `GenesisModulesProvider`; `{}` without one.
- useHaptics
A function that plays a haptic through the app's `GenesisModules.haptics`. Stable across renders.
- useHideTabBar
Hides the tab bar while this screen is focused, and shows it again when it blurs or unmounts. Pass `false` to keep it (a screen that hides it only in one mode). Outside a `TabBarVisibilityProvider` it does nothing.
- useKeyboardScroll
The app's keyboard-aware scroll view, or null when none was provided.
- useKeyboardSticky
The app's keyboard-riding view for a bottom bar, or null when none was provided (or no scroll view to go with it).
- useKeyboardToolbar
The app's keyboard toolbar, or null when none was provided (or no scroll view to go with it).
- useLiquidGlass
expo-glass-effect's `GlassView` when Liquid Glass can be drawn here, else `null`.
- useMotion
- usePressFeedback
- useReducedMotion
- useReduceTransparency
True while the user has Reduce Transparency on (iOS), `null` until the first answer. Always false elsewhere, and on a runtime that can't say.
- useTabBarHidden
Whether a screen has hidden the tab bar: for chrome that sits above it (a floating bar, a mini player).
- useThemeMode
- useThemeRoles
- useThreadJump
- useToast
Other exports (64)
alertVariants · animateMotion · appleProvider · badgeTextVariants · badgeVariants · buttonTextVariants · buttonVariants · cn · composeHeaderOptions · confirmDiscardChanges · createPlaceExit · DEFAULT_GALLERY_RATIO · defaultNativeLightboxLabels · defaultStickyHeaderOffset · ForgotPasswordLink · formatInboxTime · FULL_SCREEN_DARK · GALLERY_DEFAULTS · galleryItemRatio · getInboxPageStackOptions · getNotificationsPageStackOptions · getSettingsPageStackOptions · getSettingsSubPageStackOptions · getThreadPageStackOptions · googleProvider · iosCompactNavigationBarHeight · isNativeIconName · JUMP_SETTLE_MS · justifyRows · KEYBOARD_TOOLBAR_HEIGHT · KeyboardScrollProvider · LIGHTBOX_DISMISS_DISTANCE · LIGHTBOX_DISMISS_VELOCITY · LIGHTBOX_DOUBLE_TAP_MS · LIGHTBOX_MAX_ZOOM · lightboxPanLimit · lightboxPinchScale · lightboxShouldDismiss · lightboxTouchDistance · motionSpring · motionTiming · NATIVE_ICON_NAMES · NativeCardContent · NativeCardDescription · NativeCardFooter · NativeCardHeader · NativeListItemDivider · NativeNoFeaturesFound · NativeNoFeedbackFound · NativeNoSearchResults · NativeSheetScrollView · nextRating · playHaptic · readReceiptFor · sentBubbleColor · SF_SYMBOLS · showInboxActions · spaceScale · spacingClass · textVariants · THREAD_AT_BOTTOM_POINTS · threadListMode · threadNearBottom · toggleVariants
And 118 types.
Components (6)
- AuthGate
Render one tree for a signed-in user and another for everyone else.
- BootScreen
The default boot slot: a plain loading view (the splash covers it at launch).
- FatalScreen
The fatal screen: what went wrong and "Try again", for the whole app, one screen, or (with `kind="plain"`) the last resort that needs nothing above it.
- GenesisErrorBoundary
An error boundary whose fallback gets `{ error, retry }`.
- GenesisNativeAppBeta
The root of an Expo app: theme, keyboard, data, boot behind the splash, errors, session and held links.
- ScreenErrorBoundaryBeta
A boundary around part of a screen tree, for apps without Expo Router's per-route boundaries: non-fatal, reported, with "Try again".
Hooks (5)
- useBlocks
The resolved blocks: their ids, nav entries, Settings rows, routes and the rest, each tagged with its FeatureId. Throws outside `GenesisNativeApp`.
- useBlockSettings
The app's Settings sections with every block's rows added: each row goes at the end of the section its `section` names (by `order`, then block order), and a section no one has yet is added after the rest.
- useBoot
The boot's status, and `retry` after a failure. Inside `GenesisNativeApp` or a `BootProvider`.
- useHeldLink
Follow the held link after a sign-in, drop it otherwise; returns the link still held.
- useSession
The session and whether it is known yet. Inside `GenesisNativeApp` or a `SessionProvider`.
Other exports (30)
BEFORE_RELOAD_TIMEOUT_MS · BootProvider · BootTimeoutError · classifyError · connectQueryLifecycle · contactHref · createBoot · createHydrationGate · createLinkHold · createNativeQueryClient · createScreenErrorBoundary · createSessionStore · DAY_MS · DEFAULT_FATAL_SCREEN_LABELS · defaultErrorUtils · defaultRejectionTracker · errorDetails · errorMessages · installGlobalErrorHandler · installRejectionTracker · mergeBlockSettings · normalizeLink · onBeforeReload · PlainFatalScreen · queryKeyName · reportError · reportQueryErrors · runBeforeReload · ScreenErrorScreen · SessionProvider
And 51 types.
Other exports (2)
createQueryPersistence · persistQueries
And 3 types.
Other exports (135)
answersFromSnapshots · answerSnapshots · answersOnPath · CALCULATED_TYPE · calculatedProps · calculatedValue · canonicalJson · carryAnswers · CHOICE_FIELD_TYPES · choiceKind · choiceOptions · clearFilteredAnswers · coerceHidden · coerceHiddenValue · COMPUTED_FIELD_TYPES · computePath · contentText · createDraftAutosave · createDraftStore · createForm · createSubmitOutbox · dateLimits · DEFAULT_PHOTO_FILES · DEFAULT_PHOTO_SIZE_MB · defineForm · describeCondition · DRAFT_KEY_PREFIX · DRAFT_MAX_AGE_MS · draftOf · evaluate · evaluateFormula · explain · f · filteredChoiceError · fingerprint · formatCalculated · formatTimestamp · formProgress · FORMULA_FUNCTIONS · formulaInput · formulaNumber · formulaRefs · furthestReached · getContentType · getFieldType · hasOptionFilters · hiddenByPrefill · HIGHLIGHT_NOTE_MESSAGE · IDEMPOTENCY_KEY_PATTERN · isBuiltInFieldType · isChoiceField · isEmptyValue · isFormEvent · isHttpsUrl · isIdempotencyKey · isIsoDate · isJson · isOtherValue · isPhotoFormat · isPhotoRef · isPrefillParam · isSearchable · isSensitive · isSubmitResult · listContentTypes · listFieldTypes · listLimits · MAX_CALCULATED_DECIMALS · MAX_FORM_FORMULA_LENGTH · MAX_FORMULA_ITEMS · MAX_FORMULA_LENGTH · MAX_HIDDEN_STRING_LENGTH · MAX_HIGHLIGHT_NOTE_LENGTH · MAX_HIGHLIGHT_QUOTE_LENGTH · MAX_PHOTO_FILES · MAX_PHOTO_ID_LENGTH · MAX_PHOTO_NAME_LENGTH · MAX_PHOTO_SIZE_MB · MAX_PREFILL_PARAM_LENGTH · MAX_SETTLE_ITEMS · MAX_TABLE_CELL_LENGTH · MAX_TABLE_COLUMNS · MAX_TIMESTAMP_SECONDS · MAX_UPLOAD_REQUEST_BYTES · memoryStorage · mergeResponses · normalizeValue · numberLimits · OPTION_LIMITS · optionFilter · optionJson · optionMatches · optionsSource · OTHER_MAX_LENGTH · otherOption · parseForm · parseFormula · parseTimestamp · PHOTO_FORMATS · PHOTO_TYPE · photoCountMessage · photoFormatList · photoLimits · photoRefs · photoSizeMessage · photoTypeMessage · prefillFromLink · prefillSetting · ratingDisplay · readOption · recall · registerContentType · registerFieldType · renameFormulaKey · replay · REQUIRED_MESSAGE · respondentPath · restoreDraft · ruleVisible · scaleLabels · SEARCHABLE_OPTION_COUNT · searchOptions · steps · STRUCTURED_FIELD_TYPES · submitOutcome · summarizeValue · tableColumns · tableLimits · UPLOAD_FIELD_TYPES · validateField · VALIDATOR_FAILED_MESSAGE · visibleOptions · webStorage · when · withHostOptions
And 95 types.
Other exports (40)
addressPrefix · allow · answersFromSnapshots · answerSnapshots · attemptHash · checkUploads · clientIp · createEditSecretReader · createUploadHandler · DEFAULT_TRUSTED_IP_HEADERS · EDIT_LINK_PARAM · EDIT_LINK_TTL_SECONDS · editLinkUrl · IDEMPOTENCY_KEY_PATTERN · isEditLinkRequest · isIdempotencyKey · isSubmitResult · isUsableEditSecret · MAX_EVENTS · MAX_REPLAY_WORK · MAX_SUBMISSION_VALUES · MAX_UPLOAD_REQUEST_BYTES · mergeResponses · MIN_EDIT_SECRET_BYTES · NOT_UPLOADED_MESSAGE · publicDefinition · RATE_LIMIT_DEFAULTS · rateLimitKey · RAW_EVENTS_PER_EVENT · signEditToken · submitOutcome · submitResponse · UPLOAD_MESSAGES · uploadFields · uploadRules · validateSubmission · verifyEditToken · withEditLinkHeaders · withEditToken · withHostOptions
And 41 types.
Other exports (76)
answerCell · checkHookHost · checkWebhookUrl · clearGoogleOAuthTokenCache · clearGoogleTokenCache · columnLetter · conditionOf · createDeliveryRunner · createSecrets · DEDUPE_WINDOW · DEFAULT_BATCH_SIZE · DEFAULT_MAX_ATTEMPTS · DEFAULT_MAX_DEFERRALS · DEFAULT_SHEET_NAME · defaultBackoff · DeliveryError · deliveryFailure · deliveryOutcome · deriveSecretKey · DRIVE_FILE_SCOPE · emailBody · emailDestination · escapeFormula · escapeHtml · escapeSlack · GOOGLE_TOKEN_URL · googleAccessToken · googleOAuthAccessToken · HEADER_SCAN_ROWS · headerSafe · hookHost · HookUrlError · httpError · idempotencyKey · isCondition · isPrivateHost · isPublicAddress · isRetryableStatus · isSafeAddress · isSafeFrom · isSecretError · MAX_CONDITION_DEPTH · MAX_HOOK_URL_LENGTH · MAX_RECIPIENTS · mergeHeader · MIN_WEBHOOK_SECRET_BYTES · newWebhookSecret · openSecret · parseHookUrl · parseKeyring · passesCondition · refreshGoogleAccessToken · renderEmail · REQUEST_TIMEOUT_MS · RESEND_API · resendProvider · responseRow · retryAfterSeconds · rowFor · sealSecret · SecretError · secretKeyBytes · SENSITIVE_MASK · SHEETS_API · SHEETS_SCOPE · sheetsDestination · signJwt · signWebhook · SLACK_HOSTS · SLACK_VALUE_LIMIT · slackDestination · slackMessage · verifyWebhook · visibleInputs · webhookDestination · webhookPayload
And 51 types.
Components (2)
- FieldRenderer
Render one block with whatever the registry resolves.
- FormRuntime
Headless: provides the engine, the renderer registry and an id prefix to everything below.
Hooks (9)
- useChoiceOptions
The options a choice question shows now (`visibleOptions` over `answersOnPath`): all of them, or, when its list is filtered by another answer (`props.optionsFrom.filter`), the ones matching that answer. It re-renders only when that list ...
- useField
Everything one field renderer needs. Typing in one field re-renders that field only.
- useForm
Create a form engine for a definition. The engine lives as long as the definition's identity: pass a different definition object and you get a fresh engine (and a fresh response). Keep the definition stable (module scope, `useMemo`) so a...
- useFormContext
- useFormController
The headless controller behind a form renderer: the step on screen and the path, errors, Next and Back, sending with retry, auto-advance, saving progress, what to announce and where focus goes. A renderer (web, native) draws what it retu...
- useFormDraft
`useForm` with a draft on the device: the saved answers are put back when the form opens (where the respondent got to, too), saved again `delayMs` after each change, and flushed when the page is hidden or the component unmounts. With a s...
- useFormSelector
Subscribe to one slice of the form state. The component re-renders only when the selected value changes (`Object.is`), so return primitives or references the engine keeps stable (a field's value, an error string).
- useRespondentPath
The blocks the respondent steps through (`respondentPath`): the path without questions a prefill answered and hides (`props.prefill.hideWhenPrefilled`). Render these, not `state.path`, so a hidden question is neither shown nor counted.
- useSubmitOutbox
The outbox's state (what's waiting, what failed, online or not), re-rendered as it changes. Starts the outbox (its timers) on mount; it keeps running after unmount, because one outbox serves the whole app: make it once, at module scope o...
Other exports (6)
ADVANCE_DELAY_MS · CLASSIC_PROGRESS_DELAY_MS · createRendererRegistry · formEngineOptions · outboxSubmit · PROGRESS_DELAY_MS
And 14 types.
Components (2)
- FieldChrome
Label, description and error around a control. Group types (radio, checkbox list, rating, scale) get a real `fieldset`/`legend`, so a screen reader announces the question with every option; the fieldset carries the field's `inputId` (an ...
- Form
Hooks (4)
- useFormPresentation
The presentation and layout of the enclosing `<Form>`, so a custom slot or renderer can match the built-in ones (larger type and tap targets in page mode, for example). Outside a `<Form>` it reads embedded and classic.
- useMediaTime
The enclosing `MediaTimeContext` value, or null.
- useSourceText
The enclosing `SourceTextContext` value, or null.
- useUpload
The enclosing `UploadContext` value, or null when no host stores files.
Other exports (38)
builtInRenderers · CLASSIC_PROGRESS_DELAY_MS · ConsentField · DateField · DefaultBrand · DefaultEnding · DefaultErrorSummary · DefaultHeader · DefaultNavigation · DefaultProgress · defaultRegistry · describedBy · DropdownField · HIDDEN_QUERY_KEEP_MS · hideQueryOnLoad · ListField · MediaNotesField · MediaTimeContext · MultiChoiceField · NumberField · photoAccept · PhotoField · photoFileProblem · photoFileType · PROGRESS_DELAY_MS · ScaleField · signedUploadHost · SingleChoiceField · SourceTextContext · TableField · TextField · TextHighlightsField · themeColors · themeCss · UPLOAD_WAIT_MESSAGE · UploadContext · wasReload · YesNoField
And 19 types.
Other exports (80)
AGENTS_BLOCK_END · AGENTS_BLOCK_START · APP_LOCK_LAYERS · BlockError · BrokenBlockError · catalogueFromManifest · catalogueManifest · CONTENT_PACK_FIELD_TARGETS · contentPackBlocks · ContentPackError · contentPackProblems · cycleProblems · DEFAULT_PRESET · defineBlock · defineContentPack · defineFeatures · defineFlags · defineSettings · dependencyOrder · expiredFlags · FEATURE_HORIZONS · FEATURE_KINDS · FEATURE_LAYERS · FEATURE_PLATFORMS · FEATURE_STATUSES · featureKind · featureLayer · FeatureOff · featureOn · featurePackageLayer · FeatureRegistryError · featureSchema · findFeatures · FLAG_KINDS · flagSchema · flagsForFeature · fromSnapshot · gateSnapshot · isLockedEntry · isPresetDefaults · isSnapshotStale · MARKETING_BLOCK_END · MARKETING_BLOCK_START · marketingRecords · OPENFEATURE_MANIFEST_SCHEMA · overlayUpstream · PACKAGE_GROUPS · PACKAGE_LAYERS · packageLayerProblems · readAgentsBlock · readOverlayMarker · readPackageMeta · replaceAgentsBlock · requireFeature · requirementProblem · requiresProblems · resolveBlocks · resolveSettings · SCOPE_LAYERS · SETTING_KEY · SETTING_TYPES · SETTINGS_LAYERS · SETTINGS_PRESETS · settingsCatalogue · SettingsError · settingsFromManifest · settingsGateContext · settingsLayerFromFile · settingsLayerFromRows · settingsSecrets · settingValueProblem · SHIPPED_STATUSES · statusOn · toAgentsMarkdown · toJson · toMarketingMarkdown · toOpenFeatureManifest · toRecords · toSkillMarkdown · withSettings
And 81 types.