Get usage example
get_usage_exampleGenerate JSX usage examples for React library components and validate optional props against the library, reporting invalid variants or sizes instead of using them silently.
Instructions
Generates a JSX example for a component. Optional props are validated against the library, so invalid variants or sizes are reported instead of silently used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Component name, e.g. Button | |
| props | No | Props to include, e.g. { "variant": "danger", "size": "small" } |