@openhands/ui
A modern React component library built with TypeScript and Tailwind CSS.
Installation
Choose your preferred package manager:
npm install @openhands/ui
yarn add @openhands/ui
pnpm add @openhands/ui
bun add @openhands/ui
Quick Start
import { Button, Typography } from "@openhands/ui";
import "@openhands/ui/styles";
function App() {
return (
<div>
<Typography.H1>Hello World</Typography.H1>
<Button variant="primary">Get Started</Button>
</div>
);
}
Components
Button | Interactive button with multiple variants |
Checkbox | Checkbox input with label support |
Chip | Display tags or labels |
Divider | Visual separator |
Icon | Icon wrapper component |
Input | Text input field |
InteractiveChip | Clickable chip component |
RadioGroup | Radio button group |
RadioOption | Individual radio option |
Scrollable | Scrollable container |
Toggle | Toggle switch |
Tooltip | Tooltip overlay |
Typography | Text components (H1-H6, Text, Code) |
Development
Use your preferred package manager to install dependencies and run the development server. We recommend using Bun for a fast development experience.
Note: If you plan to make dependency changes and submit a PR, you must use Bun during development.
bun install
bun run dev
bun run build
Testing Locally Without Publishing
To test the package in another project without publishing to npm:
bun run build
bun pm pack
npm install path/to/openhands-ui-x.x.x.tgz
Publishing
This package is automatically published to npm when a version bump is merged to the main branch. See PUBLISHING.md for detailed information about the publishing process.
License
MIT