Get Reference Implementation
get-reference-implementationRead-onlyIdempotent
Returns a shipped component's reference implementation: a Vue 3 component that meets every rule in its checklist, the tests that prove it, the helpers it shares with other components and its theme tokens. The live examples on the site run on this code.
WHEN TO USE: to build a component that meets the standard, in Vue or by porting it and its tests to another framework, or to see how a rule is met in code. WHEN NOT TO USE: for the requirements, use get-contract. For how the component is used in another framework, use get-page with that framework.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Only these files, like ["Button.vue"] or ["Button.test.ts"]. Leave it out for every file. | |
| component | Yes | A component with a reference implementation, like button. |