@sellbase/web
| Install | |
|---|---|
npm install @sellbase/web |
|
| Latest Version: | 0.3.3 |
| License: | MIT |
| Last Updated: | Sep 28, 2026 |
| Links: | GitHub · npm |
@sellbase/web
Sellbase web components for any site: plain HTML, WordPress, Webflow, Vue, Svelte, Astro or Angular. Shadow DOM, themed with CSS variables, 13 KB gzipped.
<script>
window.SellbaseConfig = {
url: 'https://<project>.supabase.co/functions/v1/sellbase-api',
anonKey: '<anon key>',
};
</script>
<script type="module" src="https://unpkg.com/@sellbase/web/dist/sellbase.js"></script>
<sellbase-cart-button></sellbase-cart-button>
<sellbase-add-to-cart product="my-product-slug"></sellbase-add-to-cart>
<sellbase-cart-drawer></sellbase-cart-drawer>
<!-- on /checkout: -->
<sellbase-checkout></sellbase-checkout>
<!-- on /gracias: -->
<sellbase-checkout-return></sellbase-checkout-return>
Elements:
sellbase-add-to-cart,sellbase-price,sellbase-product-grid;sellbase-product: a full product page (gallery, title, description and buy box). Useproduct="<slug>", orslug-param="p"to read the slug from?p=so oneproducto.htmlserves every product (setproductUrl: '/producto.html?p={slug}'inSellbaseConfig);sellbase-cart-button,sellbase-cart-drawer;sellbase-checkout(shows the consent checkbox the store requires),sellbase-checkout-return;sellbase-order-lookup,sellbase-download.
Theme them with --sellbase-primary, --sellbase-text, --sellbase-border, --sellbase-radius… and ::part().
Part of Sellbase, open source commerce that lives inside your project. MIT licensed.
Related Packages
Framework-agnostic Web Components for skeehn — custom elements that work in Vue,...
Proper UI as framework-agnostic custom elements ( , , ...) for Vue, Angular, Sve...
Video.js 10 for HTML, Vue, and Svelte: player custom elements and skins for vide...
Framework-agnostic Web Components for the Simplr platform. Standard Custom Eleme...
Framework-agnostic animated handwriting renderer with React, Svelte, Vue, Nuxt,...
Version History
| Version | Released | License |
|---|---|---|
| 0.3.3 | MIT | |
| 0.3.2 | MIT | |
| 0.3.1 | MIT | |
| 0.3.0 | MIT |