Skip to main content

lh-ui-react

Enterprise-grade React component library with a Chinese aesthetic

Isomorphic and same-source with lh-ui-plus, sharing design tokens, component logic, and styles. Supports React 18 / 19.

Same-source, isomorphic

Component logic comes from @lh-ui/share/core, shared zero-copy with lh-ui-plus (Vue 3) and lh-ui-vue2, with identically named and synonymous props.

React 18 / 19

forwardRef ref forwarding, memoized Context values, StrictMode safety, and SSR friendliness — designed for both major versions.

Import on demand

Theme and component styles are imported on demand; the bundler trims unused styles precisely, with no full-bundle side effects.

Chinese ink aesthetic

Five preset palettes (cerblue / songhua / zhusha / shuimo / golden), a pattern-background system, and both light and dark modes.

Accessible

ARIA semantics, keyboard interaction, and focus management are all defined in the shared layer, implemented consistently across platforms, and follow APG patterns.

Fully typed

Written in TypeScript, d.ts files emitted directly by the tsc mirror, with prop types matching the Vue versions one to one.