Integrations
Searchable third-party integrations directory with live recounting category filters, morphing Connect pills, layout-animated rows, and a settings drawer with hold-to-disconnect.
import { Integrations } from '@uthereal/ui/integrations'Integrations playground
Integrations
Connect the tools your team already works in.
- Communication
Post release notes and approval requests to the channels you pick.
Connected - Storage
Attach docs and keep shared folders in step with their projects.
Connected - Analytics
Send product events and funnels to Mixpanel as they happen.
- Communication
Turn customer emails into tracked requests with the thread attached.
- Storage
Link team folders to projects without uploading files twice.
- Analytics
Track sign-ups and traffic on your public project pages.
- Communication
Attach recordings and transcripts to the meetings on each project.
- Storage
Archive nightly exports and audit logs to a bucket you own.
- Analytics
Sync projects, tasks, and time entries to your warehouse every night.
Overview
Integrations provides a complete settings or marketplace directory for third-party workspace connections. Readers filter providers by live search or a category radiogroup whose count badges roll dynamically as connections change. Clicking Connect morphs the pill smoothly through Connecting into Connected while sliding a Configure button into place. Selecting any row or Configure opens a detail drawer showing connection ownership, requested or granted permissions, an Automatic sync switch, a Sync frequency selector, and a Hold to disconnect danger control.
Use Integrations for OAuth app marketplaces, workspace connection directories, and cloud settings pages that need sync controls and safe disconnection. For managing developer API keys, use Keys. For an animated brand showcase without sync settings, use Orbit logos.
Usage
'use client'
import { Integrations } from '@uthereal/ui/integrations'
export function WorkspaceIntegrations() {
return (
<Integrations
onConnect={async (item) => {
const res = await fetch(`/api/integrations/${item.id}/connect`, {
method: 'POST',
})
if (!res.ok) throw new Error('Connection failed')
}}
onDisconnect={async (item) => {
await fetch(`/api/integrations/${item.id}`, { method: 'DELETE' })
}}
onSettingsChange={(item, settings) => {
void fetch(`/api/integrations/${item.id}/settings`, {
method: 'PATCH',
body: JSON.stringify(settings),
})
}}
/>
)
}Omit items, onConnect, and onDisconnect to render the default nine-provider sample directory with simulated local connection handshakes (nothing is sent over the network).
Examples
Pre-filtered connected view
Set defaultCategory="Connected" and searchable={false} for a compact workspace summary focused on active connections and their sync schedules.
Active workspace connections
Connected services currently syncing workspace activity.
- Communication
Post release notes and approval requests to the channels you pick.
Connected - Storage
Attach docs and keep shared folders in step with their projects.
Connected
Custom provider catalog and categories
Supply your own items and categories to model any integration marketplace. Built-in IDs (slack, google-drive, mixpanel, gmail, dropbox, google-analytics, zoom, amazon-s3, snowflake) render official brand marks automatically, while custom IDs render clean monogram badges or custom marks via renderMark.
Data pipelines
Stream product events into analytics and warehouse targets.
- Communication
Post pipeline health alerts and daily digests to channels.
Connected - Analytics
Forward funnel events and user traits for cohort analysis.
- Storage
Sync partitioned Parquet tables into your warehouse schema.
Connected - Analytics
Publish curated executive dashboards with scheduled refreshes.
Filters and settings drawer
Filter radiogroup
| Filter | Behavior | Count badge |
|---|---|---|
All (allLabel) | Displays every provider in items matching the current search query. | Total provider count. |
Connected | Displays providers whose status is connected and match the search query. | Rolls up or down live as providers connect or disconnect. |
| Category options | Matches providers by category (derived from items or set via categories). | Total providers in that category. |
Settings drawer sections
| Section | Composed control | Behavior |
|---|---|---|
| Status & owner | Morphing Connect pill + Avatar | Shows connection state, who connected the tool, and when. Connecting here expands settings in place. |
| Access | Curated eye, pencil, and refresh-cw icons | Lists scopes as requested (will be able to) before connecting and granted (can) once connected. |
| Automatic sync | Switch | Enables or pauses scheduled syncing and disables the frequency picker while paused. |
| Sync frequency | MorphSelect | Selects realtime, 15m, hourly, or daily cadence with a rising schedule description. |
| Danger zone | HoldToConfirm | Requires a sustained press (or holding Space/Enter) to revoke access and fold settings away. |
API reference
These serializable arguments and defaults come directly from the component schema.
| Argument | Type / default | Description |
|---|---|---|
title | stringDefault: "Integrations" | Directory heading and accessible section name. |
description | stringDefault: "Connect the tools your team already works in." | Supporting line below the heading. Pass an empty string (or null in React) to hide it. |
items | IntegrationItem[]Default: [{"id":"slack","name":"Slack","category":"Communication","description":"Post release notes and approval requests to the channels you pick.","brand":"slack","connected":true,"autoSync":true,"syncInterval":"realtime","owner":{"name":"Emma Collins","connectedAt":"Sep 3"},"scopes":[{"kind":"read","text":"Read channel names and member lists"},{"kind":"write","text":"Post and update messages in channels you choose"},{"kind":"sync","text":"Unfurl project links shared in conversations"}]},{"id":"google-drive","name":"Google Drive","category":"Storage","description":"Attach docs and keep shared folders in step with their projects.","brand":"google-drive","connected":true,"autoSync":true,"syncInterval":"15m","owner":{"name":"Marcus Johnson","connectedAt":"Aug 28"},"scopes":[{"kind":"read","text":"View files in folders shared with the workspace"},{"kind":"write","text":"Create a folder for each new project"},{"kind":"sync","text":"Mirror folder changes into project files"}]},{"id":"mixpanel","name":"Mixpanel","category":"Analytics","description":"Send product events and funnels to Mixpanel as they happen.","brand":"mixpanel","connected":false,"autoSync":true,"syncInterval":"realtime","scopes":[{"kind":"read","text":"Read the tracking plan and event schema"},{"kind":"write","text":"Send workspace events to one source"},{"kind":"sync","text":"Replay the last 7 days of events after reconnecting"}]},{"id":"gmail","name":"Gmail","category":"Communication","description":"Turn customer emails into tracked requests with the thread attached.","brand":"gmail","connected":false,"autoSync":true,"syncInterval":"15m","scopes":[{"kind":"read","text":"Read messages sent to shared inboxes you pick"},{"kind":"write","text":"Apply a label when a request is resolved"},{"kind":"sync","text":"Import attachments up to 25 MB"}]},{"id":"dropbox","name":"Dropbox","category":"Storage","description":"Link team folders to projects without uploading files twice.","brand":"dropbox","connected":false,"autoSync":true,"syncInterval":"hourly","scopes":[{"kind":"read","text":"View the files and folders you select"},{"kind":"write","text":"Add a comment when a file is approved"},{"kind":"sync","text":"Keep file versions and previews up to date"}]},{"id":"google-analytics","name":"Google Analytics","category":"Analytics","description":"Track sign-ups and traffic on your public project pages.","brand":"google-analytics","connected":false,"autoSync":true,"syncInterval":"hourly","scopes":[{"kind":"read","text":"Read saved cohorts to target announcements"},{"kind":"write","text":"Create an annotation when a release ships"},{"kind":"sync","text":"Send account and user properties"}]},{"id":"zoom","name":"Zoom","category":"Communication","description":"Attach recordings and transcripts to the meetings on each project.","brand":"zoom","connected":false,"autoSync":true,"syncInterval":"hourly","scopes":[{"kind":"read","text":"Read scheduled meetings and participants"},{"kind":"write","text":"Create meeting links from project events"},{"kind":"sync","text":"Import cloud recordings and transcripts"}]},{"id":"amazon-s3","name":"Amazon S3","category":"Storage","description":"Archive nightly exports and audit logs to a bucket you own.","brand":"amazon-s3","connected":false,"autoSync":true,"syncInterval":"daily","scopes":[{"kind":"read","text":"List objects under the northwind/ prefix"},{"kind":"write","text":"Write nightly exports to the bucket you choose"},{"kind":"sync","text":"Keep 13 months of daily exports"}]},{"id":"snowflake","name":"Snowflake","category":"Analytics","description":"Sync projects, tasks, and time entries to your warehouse every night.","brand":"snowflake","connected":false,"autoSync":true,"syncInterval":"daily","scopes":[{"kind":"read","text":"Read table sizes to estimate sync time"},{"kind":"write","text":"Create tables in the schema you choose"},{"kind":"sync","text":"Write incremental updates to those tables"}]}] | Third-party integrations shown in the directory. Defaults to a nine-provider sample catalog across Communication, Storage, and Analytics. |
categories | string[]— | Explicit category filter tabs shown after All and Connected. Derived from items in first-seen order when omitted. |
defaultCategory | stringDefault: "All" | Initial selected filter label on first render (such as "All", "Connected", or a category name). Edits do not reset a mounted instance. |
searchable | booleanDefault: true | Show the live search input in the directory header. |
searchPlaceholder | stringDefault: "Search by name or category" | Placeholder text inside the search input. |
allLabel | stringDefault: "All" | Label of the filter option showing every integration. |
connectedLabel | stringDefault: "Connected" | Label of the filter option showing only connected integrations. |
connectAction | string— | Registered host action requested when the user activates Connect on an integration. |
disconnectAction | string— | Registered host action requested when Hold to disconnect completes. |
saveSettingsAction | string— | Registered host action requested when automatic sync or sync frequency changes. |
recipe | studio | softDefault: "studio" | Visual treatment. Both recipes preserve interaction behavior. |
theme | IntegrationsThemeDefault: {} | Color mode, accent, and typed semantic token overrides. |
motion | none | subtle | expressiveDefault: "subtle" | Animation preset. System reduced-motion preferences take precedence. |
motionOptions | IntegrationsMotionOptionsDefault: {} | Morph, layout reflow, and status copy swap timing overrides in milliseconds. |
dir | ltr | rtl— | Reading direction; inherited from the page when omitted. |
IntegrationItem accepts { id, name, category, description, brand?, connected?, autoSync?, syncInterval?, scopes?, owner? }. Each entry in scopes can be a plain string or { kind: 'read' | 'write' | 'sync', text: string }.
React integration
| Prop | Purpose |
|---|---|
onConnect(item) | Called when Connect is clicked. Return a Promise to hold the Connecting state until it settles; rejections return to idle. |
onDisconnect(item) | Called when Hold to disconnect completes. Return a Promise to await async revocation before collapsing settings. |
onSettingsChange(item, s) | Called when autoSync or syncInterval changes inside the drawer. |
onAction(action, itemId) | Called with connectAction, disconnectAction, or saveSettingsAction and the affected provider ID. |
renderMark(item, { size }) | Replaces the built-in brand mark or monogram inside each row. Keep returned elements decorative. |
description | Also accepts null or "" in React to hide the subtitle beneath the heading. |
portalContainer | Portal target forwarded to the settings drawer and sync frequency picker. |
preset | Application defaults overridden by explicit instance arguments. |
tokens | CSS variables applied after the typed theme, emitted on both the directory root and the portalled drawer. |
ref, className, style | Applied to the root <section> element. |
| Native attributes | id, aria-*, data-*, and remaining <section> props forwarded to the root element. |
Keyboard & accessibility
| Key | Action |
|---|---|
Tab | Moves across the search field, active filter option, provider rows, Configure, and Connect. |
ArrowLeft / ArrowRight | Moves selection between filter radio buttons (respects RTL). |
ArrowUp / ArrowDown | Moves to the previous or next filter radio button. |
Home / End | Jumps to the first or last filter radio button. |
Enter / Space | Opens a provider row drawer, activates Connect, or holds Hold to disconnect. |
Escape | Closes the open settings drawer and restores focus to the originating control. |
- Category filters form a
role="radiogroup"ofrole="radio"buttons witharia-checked, rovingtabIndex, and spoken counts ("Connected, 2"). - A pre-mounted polite
role="status"live region announces filter counts, search matches, connection handshakes, sync updates, and disconnects. - When Connect finishes and its button unmounts, keyboard focus moves cleanly to Configure (or the provider row button on narrow containers) rather than dropping to
document.body. - Container queries adapt the directory at three breakpoints: below
720pxthe search field stretches full width under the heading; below520pxhorizontal padding tightens; below480pxfilters become one horizontally scrolling row, Configure and category chips hide (rows remain clickable to open the drawer), and descriptions clamp to two lines. - All layout spacing uses logical CSS properties and mirrors cleanly in RTL (
dir="rtl"), opening the settings drawer from the inline-end edge.@media (forced-colors: active)maps borders, highlights, and connected status indicators to system colors.
Motion & theming
The active filter pill glides on a morph spring (0.42s, bounce 0.16) while count badges roll digit-by-digit (RollingNumber). Filtered rows reflow with position layout animation inside a height-springing frame (0.4s, bounce 0), and the Connect pill springs continuously to each phase's measured width before drawing its confirmation tick.
Under prefers-reduced-motion: reduce, layout reflow, width morphs, travel, blur, and spinner rotation turn off while status copy keeps a 120ms opacity crossfade. Setting motion="none" makes every transition immediate (0ms).
theme accepts mode, accent, and typed tokens across these groups:
| Token group | CSS custom properties |
|---|---|
core | --ui-surface, --ui-surface-raised, --ui-text, --ui-text-secondary, --ui-muted, --ui-border, --ui-highlight, --ui-accent, --ui-accent-foreground, --ui-danger, --ui-focus-ring, --ui-radius, --ui-font, --ui-font-size, --ui-font-weight |
extended | --ui-surface-sunken, --ui-border-strong, --ui-border-subtle, --ui-track, --ui-info, --ui-success, --ui-warning, --ui-tone-foreground, --ui-overlay, --ui-tint-strength |
shape | --ui-radius-sm, --ui-popup-radius, --ui-surface-radius |
control | --ui-control-height, --ui-control-padding-x, --ui-control-gap, --ui-icon-size |
An application-wide UtherealProvider supplies defaults.
Composition
In an agent composition, Integrations is a leaf block. Configure items, categories, and registered host actions (connectAction, disconnectAction, saveSettingsAction). See Building with agents.
{
"type": "Integrations",
"props": {
"title": "Integrations",
"description": "Connect the tools your team already works in.",
"defaultCategory": "All",
"searchable": true,
"connectAction": "connect_integration",
"disconnectAction": "disconnect_integration",
"saveSettingsAction": "save_integration_settings"
},
"children": []
}