SuperAPI AI Directory

mui-helper

Frontend & websites

View repository

Updated 10-15 17:33

About this skill

MUI Helper

When to use this Skill

This Skill is automatically triggered in the following scenarios:

  1. Create or modify UI components using Material-UI
  2. Resolve MUI component implementation issues
  3. Look up MUI component props and API
  4. Implement MUI layouts and theme customization
  5. Migrate between MUI versions or customize component behavior

You must consult the documentation before use

Important reminder

Before using any MUI component or feature, you must first consult the official documentation, find the specific URL for the corresponding component or theme, and carefully read the official documentation before starting development.

Why you must consult the documentation

  1. Each MUI component has a unique API and props
  2. The official documentation contains correct usage examples and best practices
  3. Avoid common incorrect usage and performance issues
  4. Ensure the code conforms to MUI design specifications

Steps for consulting the documentation

Step 1: Access the documentation index

Access the MUI official documentation index:https://mui.com/material-ui/llms.txt

This file contains a directory of all components and features, organized into the following categories:

  • Components: List of all components
  • Customization: Related to theme customization
  • Guides: Usage guides
  • Integrations: Framework integrations
  • Migration: Version migration

Step 2: Find the specific URL

Find the component or feature you need in the documentation index, for example:

  • React Button component → https://mui.com/material-ui/react-button.md
  • Dark mode → https://mui.com/material-ui/customization/dark-mode.md
  • Next.js integration → https://mui.com/material-ui/integrations/nextjs.md

Step 3: Get the specific URL and read it

Use webfetch tool to get the documentation content and read it carefully:

  • The component's Props and API
  • Example code
  • Notes and limitations
  • Common questions

Step 4: Develop based on the documentation

Make sure you fully understand the documentation content before proceeding with development.

Documentation consultation examples

Scenario 1: Using the Button component

  1. Access the documentation index:https://mui.com/material-ui/llms.txt
  2. Find React Button component
  3. in the Components section. Get the URL:https://mui.com/material-ui/react-button.md
  4. Use webfetch to get the documentation content for that URL
  5. Read the Props descriptions (variant, color, size, disabled, etc.)
  6. View the example code
  7. Use the component correctly according to the documentation

Scenario 2: Customizing the theme

  1. Access the documentation index:https://mui.com/material-ui/llms.txt
  2. Find Theming
  3. in the Customization section. Get the URL:https://mui.com/material-ui/customization/theming.md
  4. Use webfetch to get the documentation content for that URL
  5. Read createTheme configuration options
  6. Learn how to define palette, typography, etc.
  7. Create the theme according to the documentation

Scenario 3: Resolving component issues

  1. Access the documentation index:https://mui.com/material-ui/llms.txt
  2. Find the relevant component documentation
  3. Use webfetch to get the documentation content
  4. Check the common questions section
  5. See whether there are API changes or deprecation warnings
  6. Refer to the officially recommended solutions

External resources