@neighborbook/biz-cards
v0.1.1
Published
Reference React components for rendering Neighbor.Biz local cards and map pins.
Readme
@neighborbook/biz-cards
Reference React components for showing Neighbor.Biz local cards and map pins. Use them as they are, restyle them with tokens, or ignore them and render the JSON yourself. The contract with us is the JSON, not these components.
pnpm add @neighborbook/biz-cards @neighborbook/biz-sdkPeers you supply: react, react-dom, framer-motion.
import { AdCard, SwipeDeck } from '@neighborbook/biz-cards';
import '@neighborbook/biz-cards/tokens.css';
<AdCard card={card} onCta={runCta} onSkip={skip} />;Icons are compiled into the build, so there is no plugin to add on your side. The tokens use the shadcn names, so if your app already has them you can skip the stylesheet and map ours onto yours.
There is also an embed build for hosts that would rather drop in a script tag than
install anything: import '@neighborbook/biz-cards/embed'.
The full host contract, including the checklist for a custom renderer, is in docs/hosts.md.
MIT.
