chakraui

📁 g1joshi/agent-skills 📅 3 days ago
1
总安装量
1
周安装量
#45620
全站排名
安装命令
npx skills add https://github.com/g1joshi/agent-skills --skill chakraui

Agent 安装分布

mcpjam 1
claude-code 1
replit 1
junie 1
zencoder 1

Skill 文档

Chakra UI

Chakra UI v3 (2025) moves to a Zero-runtime engine (Panda CSS under the hood) to solve performance issues, while keeping the developer experience of style props.

When to Use

  • Speed: Developing UI with style props (<Box mt={4} />) is incredibly fast.
  • Accessibility: WAI-ARIA compliant out of the box.
  • Customizability: Easier to customize than MUI.

Core Concepts

Style Props

Passing CSS as props. bg="red.500".

Polymorphism

as prop. <Button as="a" href="...">.

Hooks

useColorMode, useDisclosure (for modals).

Best Practices (2025)

Do:

  • Use v3: Significant performance boost over v2 (Emotion-based).
  • Use HStack / VStack: Great abstractions for Flexbox layout.
  • Extend Theme: Define your colors/fonts in a theme file.

Don’t:

  • Don’t hardcode hex colors: Use theme tokens (blue.500).

References