Installation With Shadcn
Install LyteNyte Grid using the shadcn CLI. 1771 Technologies maintains a public registry of preconfigured LyteNyte Grid components styled for shadcn.
Before You Start
Before adding LyteNyte Grid components, ensure your project is set up with shadcn. Follow the shadcn/ui installation guide for your framework to get started.
The LyteNyte Registry
LyteNyte Grid components are available under the @lytenyte namespace.
The shadcn CLI automatically locates the 1771 Technologies public registry. Run the following command to get started:
npx shadcn@latest add @lytenyte/lytenyte-corepnpm dlx shadcn@latest add @lytenyte/lytenyte-coreyarn shadcn@latest add @lytenyte/lytenyte-corebunx --bun shadcn@latest add @lytenyte/lytenyte-coreIf you’re using the PRO edition of LyteNyte Grid, run the following instead:
npx shadcn@latest add @lytenyte/lytenyte-propnpm dlx shadcn@latest add @lytenyte/lytenyte-proyarn shadcn@latest add @lytenyte/lytenyte-probunx --bun shadcn@latest add @lytenyte/lytenyte-proAfter you run the command, shadcn adds a lytenyte-core.tsx or lytenyte-pro.tsx component file,
along with a corresponding hook file (use-lytenyte-core.tsx or use-lytenyte-pro.tsx).
Each component file includes the preconfigured, headless LyteNyte Grid parts for your project. Modify these as needed for your application. Depending on your import path configuration, importing the components is as simple as:
import { Grid } from "@/components/lytenyte-core";import { Grid } from "@/components/lytenyte-pro";Manual Installation
Add @1771technologies/lytenyte-core or @1771technologies/lytenyte-pro to your project dependencies:
npm install @1771technologies/lytenyte-corepnpm add @1771technologies/lytenyte-coreyarn add @1771technologies/lytenyte-corebun add @1771technologies/lytenyte-corenpm install @1771technologies/lytenyte-propnpm add @1771technologies/lytenyte-proyarn add @1771technologies/lytenyte-probun add @1771technologies/lytenyte-proNext copy and paste the following code into your project:
import "@1771technologies/lytenyte-core/design.css";import "@1771technologies/lytenyte-core/shadcn.css";import "@1771technologies/lytenyte-core/grid.css";import { Grid } from "@1771technologies/lytenyte-core";
export function LyteNyte<Spec extends Grid.GridSpec>( props: Grid.Props<Spec> & (undefined extends Spec["api"] ? unknown : { apiExtension: ((incomplete: Grid.API<Spec>) => Spec["api"] | null) | Spec["api"]; }),) { return ( <div className="ln-grid ln-shadcn h-full w-full"> <Grid {...props} /> </div> );}import "@1771technologies/lytenyte-pro/design.css";import "@1771technologies/lytenyte-pro/shadcn.css";import "@1771technologies/lytenyte-pro/grid.css";import { Grid } from "@1771technologies/lytenyte-pro";
export function LyteNyte<Spec extends Grid.GridSpec>( props: Grid.Props<Spec> & (undefined extends Spec["api"] ? unknown : { apiExtension: ((incomplete: Grid.API<Spec>) => Spec["api"] | null) | Spec["api"]; }),) { return ( <div className="ln-grid ln-shadcn h-full w-full"> <Grid {...props} /> </div> );}Next Steps
- Getting Started: Get started with LyteNyte Grid, a modern React data grid designed for enterprise-scale data challenges.
- Grid Theming With Tailwind: Style LyteNyte Grid using Tailwind.
- Grid Reactivity: Learn how LyteNyte Grid enables declarative reactivity.
