Component Usage Analysis
Find all usages of $ARGUMENTS in the codebase.
Steps
- •Find the component definition: Search for
export function $ARGUMENTSorexport const $ARGUMENTSto locate the source file - •Read the component: Understand its props interface, variants, and default values
- •Find all imports: Search for
import.*$ARGUMENTSacross all .tsx/.ts files - •Find all render sites: In each importing file, find where
<$ARGUMENTSappears and note:- •Which props are passed
- •What context it's rendered in (page, dialog, card, list item, etc.)
- •Whether it's conditionally rendered
- •Whether it's inside a responsive wrapper (hidden on mobile, etc.)
Output
Produce a summary table:
| File | Context | Props Used | Conditional? | Notes |
|---|
Then list:
- •Total usage count
- •Unique prop combinations — which variants/props are actually used in practice
- •Unused props — props defined but never passed by any consumer
- •Blast radius — how many files would need testing if this component changes