@molecule/app-vendor-card-solid
Feature · vendor-card · App (browser) · v1.1.2 · Apache-2.0
Seller / vendor / agent profile card with logo, description, rating, badges
npm install @molecule/app-vendor-card-solidHow it works
@molecule/app-vendor-card-solid is a ready-made vendor-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 { VendorCard } from '@molecule/app-vendor-card-solid'
import { Button } from '@molecule/app-ui-solid'
;<VendorCard
name="Acme Supplies"
logoSrc="/logos/acme.png"
description="Industrial parts, fast shipping"
rating={4.7}
reviewCount={312}
memberSince="Jan 2021"
actions={
<Button size="sm" onClick={() => console.log('follow')}>
Follow
</Button>
}
onClick={() => console.log('open vendor page')}
/>Works with: @molecule/app-solid, @molecule/app-ui, @molecule/app-ui-solid
Reference
Vendor / seller / agent profile card.
Exports VendorCard — Avatar/logo + name + tagline + rating/review count
- member-since + badges + actions row, on the shared Card. It is the Solid
counterpart of
@molecule/app-vendor-card-react: same props and the same DOM for the same input.
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 { VendorCard } from '@molecule/app-vendor-card-solid'
import { Button } from '@molecule/app-ui-solid'
;<VendorCard
name="Acme Supplies"
logoSrc="/logos/acme.png"
description="Industrial parts, fast shipping"
rating={4.7}
reviewCount={312}
memberSince="Jan 2021"
actions={
<Button size="sm" onClick={() => console.log('follow')}>
Follow
</Button>
}
onClick={() => console.log('open vendor page')}
/>
Type
feature
Installation
npm install @molecule/app-vendor-card-solid @molecule/app-solid @molecule/app-ui @molecule/app-ui-solid solid-js
API
Interfaces
VendorCardProps
Props accepted by the VendorCard component.
interface VendorCardProps {
/** Vendor / seller display name. */
name: JSX.Element
/** Optional logo URL — falls back to Avatar text initials. */
logoSrc?: string
/** Tagline / one-liner. */
description?: JSX.Element
/** 0-5 average rating. */
rating?: number
/** Total review count. */
reviewCount?: number
/** Member-since date display. */
memberSince?: JSX.Element
/** Optional badges row (Verified, Top seller, etc.). */
badges?: JSX.Element
/** Right-side actions (Follow, Message, Visit shop). */
actions?: JSX.Element
/** Optional click handler on the body. */
onClick?: () => void
/** Extra classes. */
className?: string
}
Functions
VendorCard(props)
Vendor / seller / agent profile card. Used in marketplaces, agent directories, multi-tenant catalogs.
Composes Card + Avatar from @molecule/app-ui-solid. onClick makes
the whole card clickable but adds no keyboard handler or role — put primary
navigation in actions buttons for accessibility. rating renders a
single ★ plus the number (toFixed(1)), not a five-star row;
reviewCount renders only when rating is also set. When name is not a
plain string the Avatar alt falls back to hardcoded 'Vendor'.
function VendorCard(props: VendorCardProps): JSX.Element
props— Component props (seeVendorCardProps).
Returns: The rendered vendor card.
Injection Notes
Requirements
Peer dependencies:
@molecule/app-solid^3.14.0 || ^4.0.0@molecule/app-ui^1.0.1@molecule/app-ui-solid^1.1.0solid-js^1.8.0
Runtime Dependencies
@molecule/app-solid@molecule/app-ui@molecule/app-ui-solidsolid-js
Composes Card + Avatar from @molecule/app-ui-solid. onClick makes
the whole card clickable but adds no keyboard handler or role — put primary
navigation in actions buttons for accessibility. rating renders a
single ★ plus the number (toFixed(1)), not a five-star row;
reviewCount renders only when rating is also set. When name is not a
plain string the Avatar alt falls back to hardcoded 'Vendor'. All text
slots (description, memberSince, badges, actions) are pre-translated — no
locale bond. Props (documented on the exported VendorCardProps
interface): name, logoSrc, description, rating, reviewCount, memberSince,
badges, actions, onClick, className.