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

cortex-react-components

v3.3.0

Published

A library of React components with styles. Designed to seamlessly integrate with React and Next.js.

Readme

Cortex Reply React Component library

Reusable components for use internally and externally.

✅ Fully TypeScript Supported

✅ Leverages the power of React 18 Server components

✅ Compatible with all React 18 build systems/tools/frameworks

✅ Documented with Storybook

Getting Started

Installation

pnpm add cortex-react-components

or

npm install cortex-react-components

or

yarn add cortex-react-components

You need r18gs as a peer-dependency

Setup for Tailwind CSS Projects (Recommended)

This library is designed to work seamlessly with your existing Tailwind CSS setup. Do not import globals.css directly as it may cause duplicate utility classes.

Step 1: Import the base styles

Import only the CSS custom properties (design tokens) and non-Tailwind styles:

// app/layout.tsx or _app.tsx
import "cortex-react-components/styles.css";

Step 2: Load the Manrope font

This library uses the Manrope font. You need to load it in your application.

Option A: Google Fonts (HTML)

Add this to your HTML <head>:

<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap" rel="stylesheet">

Option B: Next.js (next/font) - Recommended

// app/layout.tsx
import { Manrope } from 'next/font/google';

const manrope = Manrope({ subsets: ['latin'] });

export default function RootLayout({ children }) {
  return (
    <html lang="en" className={manrope.className}>
      <body>{children}</body>
    </html>
  );
}

Step 3: Extend your Tailwind config with our preset

// tailwind.config.js or tailwind.config.ts
import cortexPreset from 'cortex-react-components/tailwind-preset';

/** @type {import('tailwindcss').Config} */
export default {
  presets: [cortexPreset],
  content: [
    './src/**/*.{js,ts,jsx,tsx,mdx}',
    // Include the library's components for Tailwind to scan
    './node_modules/cortex-react-components/dist/**/*.{js,mjs}',
  ],
  // ... your other configuration
};

This approach ensures:

  • ✅ No duplicate Tailwind utility classes
  • ✅ Proper CSS specificity
  • ✅ Full theme customization support
  • ✅ Smaller bundle size (utilities are generated once by your app)

Alternative: Standalone CSS (Non-Tailwind projects)

If your project doesn't use Tailwind CSS, you can import the pre-built CSS:

// layout.tsx
import "cortex-react-components/globals.css";

⚠️ Warning: Do not use this approach if your project already uses Tailwind CSS, as it will cause duplicate utility classes and CSS conflicts.

Usage

Using components is straightforward.

import { Bars1 } from "cortex-react-components";

export default function MyComponent() {
  return someCondition ? <Bars1 /> : <>Something else...</>;
}