react

Installation
SKILL.md

React Component Writing Guide

Styling

Scenario Approach
Most cases createStaticStyles + cssVar.* (zero-runtime, module-level)
Simple one-off Inline style attribute
Truly dynamic (JS color fns like readableColor/chroma) createStyles + tokenlast resort

Component Priority

  1. src/components — project-specific reusable components
  2. @lobehub/ui/base-ui — headless primitives. If the component lives here, use it. Do NOT import the same-named root export.
  3. @lobehub/ui — higher-level / antd-wrapping components (only when no base-ui equivalent)
  4. antd — only when neither base-ui nor @lobehub/ui root provides it
  5. Custom implementation — true last resort

If unsure about available components, search existing code or check node_modules/@lobehub/ui/es/index.mjs and node_modules/@lobehub/ui/es/base-ui/.

Installs
1.2K
GitHub Stars
79.5K
First Seen
Jan 24, 2026
react — lobehub/lobe-chat