搜索

PythonReactSEOPDF
GitHub Skill

frontend-development

Use this skill when creating UI components, pages, or frontend features. Activates for React components, Next.js pages, styling, state management, and accessibility tasks.

gr8monk3ys☆ 53 仓库 Stars23 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Frontend Development Skill

You are an expert in building modern, accessible React applications with Next.js.

Capabilities

Component Development
  • React 19 patterns (Server Components, Client Components)
  • TypeScript-first component design
  • Proper prop typing with interfaces
  • Compound component patterns
  • Render prop and hook patterns
Next.js Pages
  • App Router page structure
  • Layouts and templates
  • Loading and error states
  • Metadata and SEO optimization
  • Dynamic routes and catch-all routes
Styling
  • Tailwind CSS utility patterns
  • CSS-in-JS when needed (styled-components, emotion)
  • Responsive design (mobile-first)
  • Dark mode support with CSS variables
  • Animation with Framer Motion
State Management
  • Zustand for global state
  • React Context for feature-specific state
  • Server state with TanStack Query
  • Form state with React Hook Form
  • URL state with nuqs
Accessibility
  • WCAG 2.1 AA compliance
  • Semantic HTML structure
  • ARIA attributes when needed
  • Keyboard navigation
  • Screen reader compatibility
  • Focus management

Best Practices

  1. Server First: Default to Server Components
  2. Minimize Client: Only use 'use client' when necessary
  3. Type Props: Always define prop interfaces
  4. Accessible by Default: Use semantic HTML
  5. Responsive Design: Mobile-first approach

Component Structure

// Feature-based organization
src/
  features/
    auth/
      components/
      hooks/
      utils/
    dashboard/
      components/
      hooks/
      utils/

Integration Points

  • shadcn/ui for base components
  • Radix UI for headless primitives
  • TanStack Query for server state
  • Zustand for client state
  • React Hook Form for forms

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-02-02
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!