collect_component_instances
Collect all instances of a React component with props and HTML mapping to compare usages, understand behavior, and extract patterns.
Instructions
Collect all instances of a React component type with props→HTML mapping. Useful for understanding component behavior, comparing different usages, or extracting component patterns. Returns props, rendered HTML, and minified source for each instance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Component name to search for (case-insensitive). If omitted, collects all components. | |
| maxInstances | No | Maximum instances to collect per component type (default: 20) |