Genesis

Packages

@marktiderman/genesis-ui

3.3.0Foundation · Coreessential

Shadcn-based web components. Use in Vite / RR7 / Next surfaces.

Genesis's web components: elements, patterns, layouts and data-bound views on shadcn/ui and Radix, styled only through the design system's tokens. Layer **foundation**, group **core**; essential (every Genesis web app starts with it). The React Native counterpart is `genesis-ui-native`, with the same component names.

React 19 and Tailwind CSS 4. The other peer dependencies (Radix, date-fns, recharts, Tiptap and so on) are needed only by the components that use them.

pnpm add @marktiderman/genesis-ui

READMEChangelognpm

@marktiderman/genesis-ui
Shadcn-based web components. Use in Vite / RR7 / Next surfaces.

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.

@marktiderman/genesis-ui/data

Components (26)

  • CommandPalette

    Thin action registry over `CommandDialog` / cmdk. Consumers register flat commands; optional `group` buckets them.

  • ConfirmDeleteDialogBeta

    The confirm step in front of a destructive delete: an `AlertDialog` (Radix owns focus trap, Escape and focus return), a pending state, and the failure shown in place rather than swallowed. `ResourcePage` renders it for `allowDelete` / `c...

  • ConflictSheetBeta

    Shown when a save met someone else's change: their value beside the one this person tried to save, for each field where the two differ, theirs first. "Keep mine" saves over theirs at the new version; "Take theirs" drops the changes. Reso...

  • CustomViewBeta

    A screen an app draws itself over a view (ADR 0019): Genesis loads the view's data with its scope, filters, URL state, live updates and permissions, and draws loading, empty and error; the app draws the rest.

  • DataList
  • DataPageShell
  • DataTable
  • DetailPanel
  • EventCalendarBeta

    A calendar of events in one of four layouts:

  • KanbanBoard

    Columns of cards, optionally movable between columns.

  • PrintableAgendaBeta

    One sheet per lane for the week holding `anchor`, each on its own printed page. On screen the sheets stack, so a page can show them before printing. Events that name no lane are left out: a sheet is someone's.

  • PrintButtonBeta

    Prints the page (the browser's print dialog). Hidden on the printed page itself. @stability Beta

  • RecordPeekBeta

    A record page in a peek: the view's record view, drawn inline in a sheet at the edge (`side-peek`) or a centered dialog (`center-peek`).

  • RecordView

    One record's screen, from its record view (defineRecordView):

  • ResourceBoardBeta

    A view's rows as a board. Prefer `<ResourceView view={v} mode="board" />`, which passes the scope and the screen's filters.

  • ResourceCalendarBeta

    A view's rows on a calendar, as its `calendar` block describes them. Prefer `<ResourceView view={v} mode="calendar" />`, which passes the scope and the screen's filters.

  • ResourceDetailPageBeta

    ResourceDetailPage — `DetailPage` with a record bound to it: fetches one record by id through the mounted `DataProvider` and hands it to the title, the actions, the sidebar and the content.

  • ResourceForm
  • ResourcePage

    A list page for a resource: header, filters, table or cards, paging, the open record's panel, and the built-in form and confirmed delete. {@link useResourceTable} is the same behaviour without this markup.

  • ResourceView

    A list screen from a view, in one line:

  • ResourceWorkspaceDeprecated
  • StatCardBeta

    A labelled number on a dashboard: the stat tile. Draws the one widget tile (`WidgetTile`, variant `stat`, part `stat-card`), so an app style changes it with every other tile. For a number fed by a view, use `<Widget>` with a `number` wid...

  • TreeIndent

    The indent for a row's depth, its expand arrow (or a spacer for a leaf), then the row's content.

  • WidgetBeta

    One widget, drawn on the one widget tile (`WidgetTile`). Reads through the data provider in the viewer's scope (ViewerScope), under row security, and keeps itself current (`live`, default on). Hidden when the viewer can't read a field it...

  • WidgetGridBeta

    A dashboard's widgets on a responsive grid: one column on a phone, `columns` at the widest, with a chart or a list spanning more. For the stat row of a `DashboardPage`, pass `<Widget>`s to its `stats` instead: that row is a grid already.

  • WidgetTileBeta

    The tile every widget draws. Use the component that names the job (`StatCard`, `HeadlineNumbers`, `SummaryCard`, `<Widget>`); reach for this one for a tile none of them draws, so it still wears the app style's tile parts.

Hooks (16)

  • 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.

  • useCommandPaletteHotkey

    Toggle a command palette with Cmd/Ctrl+K. Returns `[open, setOpen]` — pass into `<CommandPalette open onOpenChange />`.

  • useCustomView

    A custom view's data and states, headless (ADR 0019). `<CustomView>` calls it and draws the states; call it yourself only to draw them yourself too, and the doctor's `custom-view-states` rule will ask why.

  • useDisplayCell

    Draw one cell: the empty mark for no value or a cell the row (or viewer) hides (`when`), else its hint's renderer.

  • 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...

  • 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 ...

  • useResourceView

    The headless form: the same state as `useResourceTable`, from a view. Table, list, grid and gallery only; a board, a calendar or an app's view type has no table state (`useViewBoard`, `useViewCalendarRange` and `useViewList` are theirs).

  • useResourceViewDefaults

    The list defaults in effect (empty without a provider).

  • useResourceViewProps

    The ResourcePage props a view and a screen's options make. `useResourceView` and `<ResourceView>` both use it; call it yourself to hand the props to your own layout.

  • 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.

  • 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.

  • useViewFormFields

    The fields of a view's form, as ResourceForm takes them: what `<ResourceView>` builds its own form from. The viewer's scope narrows link pickers. Call it for a form of your own layout, or pass the view to `<ResourceForm view={…}>`, which...

  • useViewList

    A view's list, headless: the same scope, filters and permissions as `<ResourceView>`, one page at a time, for a screen that draws the rows itself (a custom view, ADR 0019):

  • useViewListParams

    The filters, select, enabled and live a screen's options make for a view's list: the viewer's scope, the preset's filter and the screen's own, as provider params. Every view type (the table's `useResourceViewProps`, the board, the calend...

  • useViewPermissions

    The view's guards for the viewer, narrowed by a screen's own rule. Shared by every view type and custom view, so they can't disagree.

Other exports (61)

AppShell · BadgeCell · BOARD_NONE · BOARD_PAGE · boardColumnFilter · CALENDAR_LIMIT · calendarLanes · calendarWindow · CurrencyCell · DataBulkBar · DataFilters · DataGrid · DateCell · DefaultLink · defaultNavigate · defineViewType · detailMode · DisplayRenderersProvider · EmptyState · eventDays · eventDots · FieldArrayRenderer · FileUploadField · FilterCombobox · isPathActive · laneColor · LinkCell · listViewTypes · NumberCell · PageHeader · placeEvents · readEventTime · recordOpen · registerViewType · RelationField · relativeDatetimeRenderer · relativeTime · RelativeTime · resolveNavigation · resolveViewType · ResourceInbox · ResourceSheet · ResourceViewDefaultsProvider · RowAvatar · RowContextMenuItems · RowMenuButton · shiftAnchor · showUndoToast · showWriteErrorToast · ThumbnailCell · timeStorage · VIEW_LIST_PAGE · ViewFilterControls · ViewSegments · ViewSettings · ViewToggle · ViewTypeSwitcher · webDisplayRenderers · windowBounds · WizardForm · X

And 94 types.

@marktiderman/genesis-ui/patterns

Components (21)

  • AuthFormBeta

    The web sign-in form. See the file's header.

  • ComposerBar
  • EmptyStateBeta

    EmptyState — what to show when a list, page, or panel has no data.

  • 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.

  • 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
  • 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...

  • 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...

  • RatingBeta

    Rating — a row of stars, read-only or interactive.

  • 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...

  • SortableListBeta

    A vertical list the user can rearrange: course steps, lesson blocks, form fields.

  • 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").

  • ThreadList

    A conversation's list. See the module docs.

  • ThreadPage
  • ToggleRowBeta

    ToggleRow — `SettingsRow` pre-wired with a `Switch`: the common label+description+on/off row for settings and preferences UI.

  • 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...

  • 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...

Other exports (22)

AUTH_PROVIDER_NAMES · DEFAULT_GALLERY_RATIO · defaultLightboxLabels · formatInboxTime · FormDescription · FormError · FormField · FormLabel · GALLERY_DEFAULTS · galleryItemRatio · justifyRows · nextRating · NoFeaturesFound · NoFeedbackFound · NoSearchResults · pageLoadingVariants · readReceiptFor · statusBadgeVariants · THREAD_AT_BOTTOM_PX · userAvatarVariants · ViewSettings · ViewToggle

And 38 types.

@marktiderman/genesis-ui/layout

Components (26)

  • AppShell
  • AuthPageBeta

    AuthPage — the web counterpart of native `AuthScreen`: a whole-screen, centred card for sign-in, sign-up, password reset, invite acceptance and email verification.

  • 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
  • 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.

  • 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.

  • 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 ...

  • FormPageBeta

    FormPage — a titled form: header, validation summary, a body of sections, and a sticky action bar.

  • GridBeta

    Grid — two-dimensional flow for card and tile collections.

  • 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 ...

  • PageHeader
  • PublicPageBeta

    PublicPage — a page anyone can open without signing in: a public form, a QR poster, a landing page. A brand header, one content column, and a "Powered by …" footer, themed from a brand object.

  • SectionBeta

    Section — a titled region of a page: heading, optional description, optional trailing actions, and the content itself.

  • SettingsPage
  • 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.

  • SubNavBreadcrumbBeta

    The outer tab levels folded into a breadcrumb: one picker per level, showing its current item and opening the level's other items. AppShell draws it above the two tab rows when a third tabbed level is open.

  • SubNavHubBeta

    A level's children as cards, one per child (icon, label, badge): a section's landing page. One column on a phone, more as the width allows.

  • SubNavListBeta

    A level's children as a vertical list of links: a column beside the content on a wide screen, or full-width rows (a phone's list page).

  • SubNavSegmentedBeta

    A segmented control of links: the phone form of a second tab row. Each segment is a real link with `aria-current` on the active one, at least 44px tall on touch; the control scrolls sideways when it doesn't fit.

  • SubNavTabsBeta

    A row of navigation tabs: real links (deep links and middle-click work), `aria-current="page"` on the active one, badges as chips, the active tab underlined in the brand colour. AppShell renders it in `tabs` mode; an app using `subNav: "...

  • TabBarBeta

    A bottom tab bar for a phone-width web screen, the twin of genesis-ui-native's `NativeTabBar`: any number of items, and past `max` (5) the last slot is "More", which opens a bottom sheet with the rest. AppShell's own phone bottom nav (li...

  • WorkspaceSwitcherBeta

    The workspace switcher. Put it in AppShell's `headerSlot`, and the `rail` and `bar` variants in `collapsedHeaderSlot` and `mobileHeaderSlot`.

Hooks (1)

  • useAppShellSubNav

    Give the shell this page's child items (sub-navigation) while the page is mounted. They replace the current `NavigationNode`'s `items`; pass `null` / `undefined` to fall back to them (a `mode` still applies). When several components call...

Other exports (27)

accessibleAccent · AppShellPageHeader · AppShellSubNavEnd · bandVariants · brandThemeStyle · containerVariants · contrastRatio · DEFAULT_WORKSPACE_KIND_ICONS · DEFAULT_WORKSPACE_KIND_LABELS · displayVariants · GAP_CLASSES · gridVariants · leadVariants · MIN_TEXT_CONTRAST · parseColor · relativeLuminance · resolveNavigation · resolveNavigationZones · sectionHeadingVariants · spaceScale · splitVariants · stackVariants · toHslTriplet · WORKSPACE_SWITCHER_PARTS · WORKSPACE_SWITCHER_SCOPE · WORKSPACE_SWITCHER_SEARCH_THRESHOLD · workspaceThemeStyle

And 44 types.

@marktiderman/genesis-ui/themes

Components (1)

  • AppearanceProviderBeta

    The person's **appearance** (light, dark or system), by its glossary name: `GenesisThemeProvider` fed from the person's appearance preferences. Inside an `AppearancePreferencesProvider` (genesis-core) it shows their appearance in the wri...

Other exports (15)

appShellBrandProps · appShellOptionsFromTheme · appThemeAttributes · arenaTheme · checklistTheme · defineAppTheme · getStarterTheme · journalTheme · notebookTheme · pressTheme · repositoryTheme · STARTER_THEMES · trackerTheme · validateAppTheme · withPairedBrand

And 4 types.

@marktiderman/genesis-ui/resource

Components (4)

  • Chip

    A small status chip in one of the resource workspace's tones (tinted, AA-safe Genesis badges). With `onSelectedChange` it is a filter chip that toggles `selected`.

  • 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.

  • 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...

Other exports (14)

dayLabel · embedSnippet · FollowUpList · HeadlineNumbers · prefilledUrl · readinessChip · ReadinessChip · readinessOf · ResourceSettingsPage · ResponsesToolbar · SAVE_STATE_LABEL · SettingsSection · ShareDialog · SummaryCard

And 14 types.

@marktiderman/genesis-ui/resource/rules

Other exports (6)

dayLabel · embedSnippet · prefilledUrl · readinessChip · readinessOf · SAVE_STATE_LABEL

And 7 types.

@marktiderman/genesis-ui/hooks

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.

@marktiderman/genesis-ui/utils

Other exports (5)

cn · formatDate · formatRelativeTime · relativeTime · touchTarget

And 3 types.

@marktiderman/genesis-ui/status-colors

Other exports (11)

allStatusColors · changelogTypeColors · feedbackStatusColors · getCoverageColor · getCoverageTextColor · ideaStatusColors · prdStatusColors · productStatusColors · researchActionColors · syncStatusColors · taskStatusColors

@marktiderman/genesis-ui/provider

Components (2)

  • 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...

Hooks (3)

  • useDataProvider
  • 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.

  • useStorage

Other exports (20)

aggregateProblems · callRpc · createMockProvider · createOrAdopt · createSupabaseProvider · DataReadError · DataWriteError · DEFAULT_RPC_MESSAGES · fieldErrorsFromPostgrest · isDataReadError · isDataWriteError · NO_ROWS_MATCHED · readFailureMessage · readOutcomeFromCode · requireDataProvider · resolveAggregate · RPC_FAILED · toAggregateValues · toDataWriteError · writeOutcomeFromCode

And 59 types.

@marktiderman/genesis-ui/sheet-grid

Components (1)

  • SheetGridExperimental

    A spreadsheet grid: virtualized rows, a keyboard-driven active cell and range, in-place editing, and copy and paste through the system clipboard as tab-separated text, so it round-trips with Sheets and Excel.

Other exports (3)

parseTsv · SheetCommitError · toTsv

And 3 types.

@marktiderman/genesis-ui/rich-text
Read-only rich text renderer and server-safe helpers (sanitize, HTML, plain text). No editor dependency; usable in server components and on the server.

Components (1)

  • RichTextBeta

    RichText — renders a rich text document as React elements.

Other exports (17)

emptyRichTextDoc · escapeHtml · isRichTextDoc · isRichTextEmpty · isSafeUrl · normalizeLinkUrl · parseVideoUrl · richTextClassName · RichTextLimitError · richTextToHtml · richTextToPlainText · sanitizeRichTextDoc · sanitizeVideoEmbedAttrs · VIDEO_IFRAME_ATTRS · videoEmbedSrc · videoEmbedTitle · videoWatchUrl

And 8 types.

@marktiderman/genesis-ui/rich-text-editor
Rich text editor (Tiptap 3) with a Genesis toolbar. Needs the optional `@tiptap/*` peers.

Components (1)

  • RichTextEditorBeta

    RichTextEditor — formatted text input for lessons, notes and other long-form content.

Other exports (1)

VideoEmbed

And 7 types.

@marktiderman/genesis-ui/router/react-router
React Router adapters for genesis-ui's navigation contract: a `LinkComponent`, a `NavigateFn`, a `SearchParamsAdapter` and the full-location `activePath`. `react-router` is an optional peer, loaded only by this subpath.

Hooks (3)

  • useReactRouterActivePath

    The current location as `pathname + search + hash`, the shape `AppShell`'s `activePath` expects, so nav items whose `to` names a query or hash (`/admin?tab=users`, `/settings#profile`) highlight correctly.

  • useReactRouterNavigate

    {@link NavigateFn} backed by React Router's `useNavigate()`. Pass it as `ResourcePage`'s `onNavigate` (or anywhere a `NavigateFn` is accepted) for client-side navigation instead of a full page load. Absolute URLs (`https://…`, `mailto:…`...

  • useReactRouterSearchParams

    {@link SearchParamsAdapter} backed by React Router's location. Pass it as `useDataFilters(key, defs, { searchParams })` so URL-synced filters go through the router (loaders re-run, back/forward stays in sync) instead of the raw History A...

Other exports (1)

ReactRouterLink

@marktiderman/genesis-ui/router/tanstack-router
TanStack Router adapters for genesis-ui's navigation contract: a `LinkComponent`, a `NavigateFn`, a `SearchParamsAdapter` and the full-location `activePath`. `@tanstack/react-router` is an optional peer, loaded only by this subpath.

Hooks (3)

  • useTanStackRouterActivePath

    The current location as `pathname + search + hash`, the shape `AppShell`'s `activePath` expects, so nav items whose `to` names a query or hash (`/admin?tab=users`, `/settings#profile`) highlight correctly. Paths are the router's (basepat...

  • useTanStackRouterNavigate

    {@link NavigateFn} backed by the TanStack router. Pass it as `ResourcePage`'s `onNavigate` (or anywhere a `NavigateFn` is accepted) for client-side navigation instead of a full page load. Absolute URLs (`https://…`, `mailto:…`, `//host/…...

  • useTanStackRouterSearchParams

    {@link SearchParamsAdapter} backed by the TanStack router's location. Pass it as `useDataFilters(key, defs, { searchParams })` so URL-synced filters go through the router (loaders and `validateSearch` run, back/forward stays in sync) ins...

Other exports (1)

TanStackRouterLink

@marktiderman/genesis-ui/accessible-icon

Components (1)

  • AccessibleIconBeta

    AccessibleIcon — gives a decorative icon an accessible name.

@marktiderman/genesis-ui/accordion
@marktiderman/genesis-ui/alert
@marktiderman/genesis-ui/alert-dialog
@marktiderman/genesis-ui/aspect-ratio
@marktiderman/genesis-ui/avatar
@marktiderman/genesis-ui/badge

And 1 types.

@marktiderman/genesis-ui/band

Components (3)

  • 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
  • DisplayBeta

    Display: a heading in the marketing type scale (`displayVariants`).

@marktiderman/genesis-ui/breadcrumb
@marktiderman/genesis-ui/builder-layout

Components (1)

  • 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.

And 1 types.

@marktiderman/genesis-ui/button

Components (1)

  • ButtonStable

    Button — primary interactive control. Variants: default, secondary, outline, ghost, destructive, link, gradient (the brand's `gradients.primary`, else the primary).

And 1 types.

@marktiderman/genesis-ui/button-group
@marktiderman/genesis-ui/calendar
@marktiderman/genesis-ui/card
@marktiderman/genesis-ui/carousel
@marktiderman/genesis-ui/chart

And 3 types.

@marktiderman/genesis-ui/checkbox
@marktiderman/genesis-ui/choice-card

Components (1)

  • 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`.

And 2 types.

@marktiderman/genesis-ui/collapsible
@marktiderman/genesis-ui/combobox

Components (1)

  • 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,...

@marktiderman/genesis-ui/command
@marktiderman/genesis-ui/command-palette

Components (1)

  • CommandPalette

    Thin action registry over `CommandDialog` / cmdk. Consumers register flat commands; optional `group` buckets them.

Hooks (1)

  • useCommandPaletteHotkey

    Toggle a command palette with Cmd/Ctrl+K. Returns `[open, setOpen]` — pass into `<CommandPalette open onOpenChange />`.

And 1 types.

@marktiderman/genesis-ui/context-menu
@marktiderman/genesis-ui/dashboard-page

Components (1)

  • DashboardPageBeta

    DashboardPage — a stat row over a flexible region of charts, tables and sections.

@marktiderman/genesis-ui/date-picker
@marktiderman/genesis-ui/detail-page

Components (1)

  • 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.

@marktiderman/genesis-ui/dialog

And 1 types.

@marktiderman/genesis-ui/document-page

Components (1)

  • 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 ...

@marktiderman/genesis-ui/drawer
@marktiderman/genesis-ui/dropdown-menu
@marktiderman/genesis-ui/empty-state

Components (1)

  • EmptyStateBeta

    EmptyState — what to show when a list, page, or panel has no data.

Other exports (3)

NoFeaturesFound · NoFeedbackFound · NoSearchResults

@marktiderman/genesis-ui/form-field
@marktiderman/genesis-ui/form-page

Components (1)

  • FormPageBeta

    FormPage — a titled form: header, validation summary, a body of sections, and a sticky action bar.

@marktiderman/genesis-ui/hover-card
@marktiderman/genesis-ui/inline-alert

Components (2)

  • 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...

  • 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...

And 1 types.

@marktiderman/genesis-ui/input
@marktiderman/genesis-ui/input-group
@marktiderman/genesis-ui/input-otp
@marktiderman/genesis-ui/kbd
@marktiderman/genesis-ui/label
@marktiderman/genesis-ui/menubar
@marktiderman/genesis-ui/navigation-menu
@marktiderman/genesis-ui/number-input

Components (1)

  • 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...

@marktiderman/genesis-ui/page-loading

Components (1)

  • 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...

@marktiderman/genesis-ui/pagination
@marktiderman/genesis-ui/password-toggle-field

Components (5)

@marktiderman/genesis-ui/popover
@marktiderman/genesis-ui/progress
@marktiderman/genesis-ui/radio-group
@marktiderman/genesis-ui/range-slider

Components (1)

  • 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`.

@marktiderman/genesis-ui/resizable
@marktiderman/genesis-ui/scroll-area
@marktiderman/genesis-ui/select
@marktiderman/genesis-ui/separator
@marktiderman/genesis-ui/settings-page

Components (1)

And 1 types.

@marktiderman/genesis-ui/settings-row

Components (1)

  • 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...

@marktiderman/genesis-ui/sheet
@marktiderman/genesis-ui/skeleton
@marktiderman/genesis-ui/slider

And 1 types.

@marktiderman/genesis-ui/sonner
@marktiderman/genesis-ui/sortable-list

Components (1)

  • SortableListBeta

    A vertical list the user can rearrange: course steps, lesson blocks, form fields.

And 2 types.

@marktiderman/genesis-ui/spinner
@marktiderman/genesis-ui/status-badge

Components (1)

  • 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").

Other exports (1)

statusBadgeVariants

@marktiderman/genesis-ui/stepper

Components (1)

  • 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...

And 1 types.

@marktiderman/genesis-ui/switch
@marktiderman/genesis-ui/table

And 1 types.

@marktiderman/genesis-ui/tabs
@marktiderman/genesis-ui/textarea
@marktiderman/genesis-ui/tier-badge

Components (1)

@marktiderman/genesis-ui/time-picker

Components (1)

  • 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"...

And 2 types.

@marktiderman/genesis-ui/toggle
@marktiderman/genesis-ui/toggle-group
@marktiderman/genesis-ui/toggle-row

Components (1)

  • ToggleRowBeta

    ToggleRow — `SettingsRow` pre-wired with a `Switch`: the common label+description+on/off row for settings and preferences UI.

@marktiderman/genesis-ui/toolbar

Components (5)

  • 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`.

Other exports (2)

ToolbarToggleGroup · toolbarVariants

@marktiderman/genesis-ui/tooltip

Components (1)

  • TooltipStable

    Tooltip — hover/focus hint anchored to its trigger child.

@marktiderman/genesis-ui/typography
@marktiderman/genesis-ui/user-avatar

Components (1)

  • 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...

Other exports (1)

DISTINCT_AVATAR_TINTS

@marktiderman/genesis-ui/visually-hidden

Components (1)

  • VisuallyHiddenBeta

    VisuallyHidden — content removed from the visual layout but kept in the accessibility tree.