These TypeScript entrypoints are intended for a React application that has
@osspkg/ui-react and @osspkg/ui-core installed. Each imports the packaged
Tailwind v4 stylesheet and uses only the public API.
The directory is a private workspace package, so React and its JSX runtime are installed for the examples themselves. Check it with:
pnpm --filter @osspkg/ui-examples typecheckTo browse the examples locally, run this from the repository root:
pnpm --filter @osspkg/ui-examples devVite prints the local address (normally http://localhost:5173). Use the buttons at the top of the page to switch between the examples.
basic.tsxrenders a static schema.html-form.tsxdemonstrates native HTML, local state, and a submit action.dashboard.tsxdemonstrates shadcn defaults and the 12-columnrow/cols/offsetlayout.
Each node with children renders them in their own 12-column grid. A child node
can use layout to choose its row, width, and offset within that parent. Nodes
without a layout fill the available row.
Render one exported component from an application entrypoint, for example:
import { createRoot } from "react-dom/client";
import { DashboardExample } from "./dashboard";
createRoot(document.getElementById("root")!).render(<DashboardExample />);