react-kui
v3.1.2
Published
A high quality UI components Library with React
Maintainers
Readme
A desktop UI component library built with React 19.2+ and TypeScript
English · 简体中文

Features
- Built for React 19.2+ with modern React APIs
- Written in TypeScript with complete component type declarations
- 50+ desktop components covering general, layout, navigation, form, data display, and feedback scenarios
- Theme customization, dark mode, and multiple component sizes
- Built-in internationalization support and multilingual resources
- On-demand component usage for modern frontend toolchains such as Vite
- Support for modern browsers and Electron
Documentation
Installation
Using pnpm:
pnpm add react-kui kui-iconsYou can also use npm, Yarn, or Bun:
npm install react-kui kui-icons
yarn add react-kui kui-icons
bun add react-kui kui-iconsreact and react-dom are peer dependencies. Your application should use React 19.2+.
Quick Start
Import the library stylesheet in your application entry, then use components directly:
import { createRoot } from "react-dom/client";
import { Button, Space, message } from "react-kui";
import "react-kui/style/index.css";
function App() {
return (
<Space>
<Button type="primary" onClick={() => message.success("Hello React KUI!")}>
Primary
</Button>
<Button>Default</Button>
</Space>
);
}
createRoot(document.getElementById("root")!).render(<App />);Component props and events include TypeScript types and editor autocompletion:
import { Cascader, type CascaderOption, type CascaderValue } from "react-kui";
import { useState } from "react";
const options: CascaderOption[] = [
{
value: "california",
label: "California",
children: [{ value: "san-francisco", label: "San Francisco" }],
},
];
export default function Demo() {
const [value, setValue] = useState<CascaderValue>([]);
return <Cascader value={value} options={options} onChange={setValue} />;
}Local Development
git clone [email protected]:smallerqiu/kui-react.git
cd kui-react
pnpm install
pnpm devThe documentation development server runs at http://localhost:7006 by default.
Common commands:
pnpm dev # Start the documentation development server
pnpm typecheck # Run TypeScript checks
pnpm build:docs # Build the documentation site
pnpm build # Build the component library and stylesBrowser Support
React KUI supports the latest two versions of major modern browsers, including Chrome, Edge, Firefox, and Safari. Internet Explorer is not supported.
Contributing
Issues and pull requests are welcome. Before submitting code, please ensure that the type checks and relevant builds pass.
License
Copyright © 2017-present Qiu
AI integration
Component metadata, MCP, Skill and runnable business templates: AI guide.
