@sweed/embeddables
v0.1.2
Published
Embeddable Sweed cannabis-commerce components: Age Gate, Product Carousel, Store Locator, AI Picker.
Readme
@sweed/embeddables
Embeddable Sweed cannabis-commerce components for partner sites — Age Gate, Product Carousel, Store Locator, AI Picker. Drop-in React components with the look of Sweed's storefront and a minimal partner API.
[!WARNING] Work in progress. This is a pre-1.0 package and it is not stable: any part of the public API — components, props, types, styling hooks, data contracts — may change between releases without notice until the first stable (1.0) release. Pin an exact version and read the CHANGELOG before upgrading.
Installation
npm i @sweed/embeddablesPeer dependencies: react ^19.0.0, react-dom ^19.0.0.
Quick start
import { AgeGate, EmbeddablesProvider } from '@sweed/embeddables';
import '@sweed/embeddables/style.css';
export default function App() {
return (
<EmbeddablesProvider>
<AgeGate onPass={() => console.log('age verified')} />
</EmbeddablesProvider>
);
}Documentation
Component docs, live demos, integration guides (data adapters, styling, SSR), and copy-pasteable examples live on the showcase site — that is the source of truth for the public API:
- Changelog: CHANGELOG.md
License
Proprietary. Use is subject to a separate written license agreement with Sweed POS. See LICENSE.
