Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@commercelayer/app-elements

Package Overview
Dependencies
Maintainers
2
Versions
252
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercelayer/app-elements

React UI Elements for Commerce Layer applications.

  • 0.0.18
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

App Elements

React UI Elements for Commerce Layer applications.

What is Commerce Layer?

Commerce Layer is a multi-market commerce API and order management system that lets you add global shopping capabilities to any website, mobile app, chatbot, wearable, voice, or IoT device, with ease. Compose your stack with the best-of-breed tools you already mastered and love. Make any experience shoppable, anywhere, through a blazing-fast, enterprise-grade, and secure API.

Table of contents

Getting started

  1. Install the package as dependency
pnpm install @commercelayer/app-elements
  1. Add global css in your app index.tsx
import "@commercelayer/app-elements/style.css";


React.createRoot(document.getElementById("root") as HTMLElement).render(
  <React.StrictMode>
    <App />
  </React.StrictMode>
)
  1. load Manrope Google font into your html
<head>
  <link rel="preconnect" href="https://fonts.gstatic.com" />
  <link
    href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap"
    rel="stylesheet"
  />
</head>
  1. Import any components your need
import { Container, Button, Label } from "@commercelayer/app-elements";
  1. (optional) install @commercelayer/sdk to use <TokenProvider> component

Preact

Support for preact is provided out of the box, thanks to the fact we are not including React jsx-runtime modules in bundled files. The application where this package is installed to is responsible of this. But no extra configuration should be required in your project, in fact all latest versions of vite, react and preact will handle this automatically.

FAQs

Package last updated on 31 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc