npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@xplortech/apollo-react

v3.7.0

Published

This package contains React bindings for Apollo components. Apollo Core uses web components, but this package wraps those components in a React-friendly JSX syntax.

Readme

Apollo React - React Components for Xplor Apollo

This package contains React bindings for Apollo components. Apollo Core uses web components, but this package wraps those components in a React-friendly JSX syntax.

If your app uses React and you want to use Apollo components, you should use this package!

Installation

Apollo React is published as a public package on NPM.

Install:

npm install @xplortech/apollo-react@latest

Styles

Import the full stylesheet once in your app (backwards-compatible bundle):

import '@xplortech/apollo-react/css/apollo.css';

For modular CSS (brand theming and treeshaking), import from the proxy paths exposed by this package:

import '@xplortech/apollo-react/css/variables/apollo.css';
import '@xplortech/apollo-react/css/core.css';
import '@xplortech/apollo-react/css/tailwind-theme.css'; // when using Tailwind v4 with Apollo theme tokens

Other modular entry points: reset.css, typography.css, variables/field-edge.css, and vendor/flatpickr.css.

Per-component CSS for treeshaking is not proxied here — import directly from @xplortech/apollo-core/css/components/* (for example @xplortech/apollo-core/css/components/button.css). When using these per-component paths, declare @xplortech/apollo-core in your own package.json: it otherwise resolves as a pinned transitive dependency of this package via npm hoisting, which is fragile and prevents bumping core independently.

Server-side rendering

Import server bindings from the dedicated ./server subpath export when rendering on Node (e.g. renderToReadableStream, Next.js App Router server components):

import { XplButton } from '@xplortech/apollo-react/server';

Server bindings call Stencil hydrateModule during SSR so server HTML matches what the client hydrates. Client bundles should keep using the default @xplortech/apollo-react import. See the SSR guide for full setup.

Getting Started

Most changes rely on changing dash-separated tag names (i.e. xpl-component) to camel-case (i.e. XplComponent). For example:

<xpl-button variant="secondary" size="sm" icon="heart">Click me</button>
<XplButton variant="secondary" size="sm" icon="heart">Click me</XplButton>

But one thing that is much easier is passing complex data to components in a declarative, rather than imperative way. For example, if you are rendering a table with web components, you would have to add data separate from the component markup:

<xpl-table id="table"></xpl-table>
<script>
  document.getElementById('table').data = [
    [
      "Row 1 Item 1",
      "Row 1 Item 2"
    ],
    [
      "Row 2 Item 1",
      "Row 2 Item 2"
    ]
  ];
</script>

Whereas with React components you can pass it directly through props:

/**
 * Notice that we don't need to include an `id` to
 * reference it later in the markup
 */
<XplTable data={[
  [
    "Row 1 Item 1",
    "Row 1 Item 2"
  ],
  [
    "Row 2 Item 1",
    "Row 2 Item 2"
  ]
]} />