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 (Select, Modal, DropdownMenu, Popover, Switch, ScrollArea…)
  3. @lobehub/ui — higher-level components (ActionIcon, Markdown, DragPage…)
  4. Custom implementation — last resort; never reach for antd directly

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

Installs
2.4K
Repository
lobehub/lobehub
GitHub Stars
78.4K
First Seen
Jan 27, 2026
react — lobehub/lobehub