cortex-react-components
TypeScript icon, indicating that this package has built-in type declarations

2.4.0 • Public • Published

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

Import Styles

You can import styles globally or within specific components.

/* globals.css */
@import "cortex-react-components/dist";
// layout.tsx
import "cortex-react-components/dist/index.css";

For selective imports:

/* globals.css */
@import "cortex-react-components/dist/client"; /** required if you are using LoaderContainer */
@import "cortex-react-components/dist/server/bars/bars1";

Usage

Using loaders is straightforward.

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

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

/cortex-react-components/

    Package Sidebar

    Install

    npm i cortex-react-components

    Weekly Downloads

    591

    Version

    2.4.0

    License

    MPL-2.0

    Unpacked Size

    20.7 MB

    Total Files

    1388

    Last publish

    Collaborators

    • cortex-reply