@molecule/app-integration-card-solid
Feature · integration-card · App (browser) · v1.1.3 · Apache-2.0
Integration / connection card with icon, status, connect/disconnect action
npm install @molecule/app-integration-card-solidHow it works
@molecule/app-integration-card-solid is a ready-made integration-card feature for the app (browser) side. It composes the core interfaces it needs, so it works with whichever providers your app has bonded.
import { IntegrationCard } from '@molecule/app-integration-card-solid'
export function Integrations() {
return (
<IntegrationCard
title="Slack"
description="Send notifications to your team channels."
status="disconnected"
action={{
label: 'Connect',
onClick: () => {
window.location.href = '/oauth/slack'
},
}}
dataMolId="slack-integration-card"
/>
)
}Works with: @molecule/app-solid, @molecule/app-ui, @molecule/app-ui-solid
Reference
Solid integration / connection card.
Exports IntegrationCard — icon + title + description + status label +
action button. Props: icon?, title, description?, status?
(default 'disconnected'), action? ({ label, onClick?, href?, loading?, disabled? }), variant? ('card' default | 'cta' gradient
promo), className?, dataMolId?. It is the Solid counterpart of
@molecule/app-integration-card-react: the same props, the same ClassMap
tokens, and the same DOM for the same input.
Use for OAuth/API integrations, bank-connect CTAs, webhook setup cards.
Auto-generated, AI-first package reference for the molecule.dev ecosystem. It is written to be read by coding agents as much as by people, and is generated from this package's source — edit
src/index.tsJSDoc, not this file.
Quick Start
import { IntegrationCard } from '@molecule/app-integration-card-solid'
export function Integrations() {
return (
<IntegrationCard
title="Slack"
description="Send notifications to your team channels."
status="disconnected"
action={{
label: 'Connect',
onClick: () => {
window.location.href = '/oauth/slack'
},
}}
dataMolId="slack-integration-card"
/>
)
}
Type
feature
Installation
npm install @molecule/app-integration-card-solid @molecule/app-solid @molecule/app-ui @molecule/app-ui-solid solid-js
API
Interfaces
IntegrationCardProps
Props for the IntegrationCard component.
interface IntegrationCardProps {
/** Leading icon / logo for the integration. */
icon?: JSX.Element
/** Integration title. */
title?: JSX.Element
/** Supporting description. */
description?: JSX.Element
/** Current connection status. Defaults to `'disconnected'`. */
status?: IntegrationStatus
/** Action button configuration. */
action?: {
/** Button label. */
label?: JSX.Element
/** Click handler (receives the DOM click event, as React's handler does). */
onClick?: (event?: KitMouseEvent) => void
/** When set, the button renders inside a plain anchor to this URL. */
href?: string
/** While true on the button branch, the label is replaced by an ellipsis glyph. */
loading?: boolean
/** Disables the action. */
disabled?: boolean
} | null
/** `'card'` default, `'cta'` for premium gradient-tinted promos. */
variant?: 'card' | 'cta'
/** Extra classes. */
className?: string
/** `data-mol-id` for AI-agent selectors. */
dataMolId?: string
}
Types
IntegrationStatus
Connection status for an integration.
type IntegrationStatus = 'connected' | 'disconnected' | 'pending' | 'error'
Functions
IntegrationCard(props)
Card for an integration / external connection (Slack, Stripe, Google Drive, bank-link CTAs, etc.). Shows icon + title + description + status + action.
function IntegrationCard(props: IntegrationCardProps): JSX.Element
props— Component props (seeIntegrationCardProps).
Returns: The rendered integration card.
Injection Notes
Requirements
Peer dependencies:
@molecule/app-solid^3.14.0 || ^4.0.0@molecule/app-ui^1.5.0@molecule/app-ui-solid^1.1.0solid-js^1.8.0
Runtime Dependencies
-
@molecule/app-solid -
@molecule/app-ui -
@molecule/app-ui-solid -
solid-js -
The status label text ('Connected', 'Connecting…', 'Error', 'Not connected') routes through
t()underintegrationCard.status.*, translated by the@molecule/app-locales-integration-cardcompanion bond. There is no override prop. -
variant="cta"paints an inlinelinear-gradientbackground over the Card usingvar(--color-primary)(falls back to a fixed blue when the theme token is missing). Inline styles beat ClassMap classes, so this overrides the themed card surface; check text contrast against your primary color before using it. -
action.hrefrenders an anchor wrapping the Button and ignoresaction.loading; preferaction.onClickfor anything that needs a loading state. Whileaction.loadingis true the button label is replaced by an ellipsis glyph. -
Styling resolves through
getClassMap()— wire a ClassMap bond (e.g.@molecule/app-ui-tailwind) before rendering.
Translations
Translation strings are provided by @molecule/app-locales-integration-card.