OSCL docs

Installation

Install the local package and import its stylesheet.

Install from npm

OSCL UI is available on the public npm registry. Install it in your React project, then import the stylesheet once.

bash
npm install oscl-ui

Next.js

Place interactive components inside a client component. The OSCL package preserves its client directives.

tsx
"use client";

import { Button } from "oscl-ui";
import "oscl-ui/styles.css";

export function Example() {
  return <Button onClick={() => alert("Hello")}>Try me</Button>;
}