How close are the props?
The goal is RDT-level detail without the wait. Here is the five-library readout, including the places we still miss.
Close, then uneven
Compare Caliper with react-docgen-typescript (RDT): the props it finds and the Storybook controls it produces.
- Props found
- Share of RDT’s non-React props Caliper finds on components both tools report.
- Same control
- Share of props both report that map to the same Storybook control kind.
- Mantine331 of 389 RDT componentsprops found99.7%same control93.1%
- Chakra592 of 773 RDT componentsprops found98.6%same control100%
- shadcn/ui1,519 of 1,594 RDT componentsprops found39.5%same control86.7%
- Ant Design162 of 258 RDT componentsprops found80.3%same control94.8%
- React Spectrum1,087 of 1,408 RDT componentsprops found99.7%same control96.9%
Caliper 0.4.0 with installed dependencies, October 23, 2026. Component counts show how many components with RDT props Caliper also found, out of RDT’s total.
What stands out
One high score cannot describe the whole set.
of RDT’s non-React props on matched Mantine and Spectrum components. Chakra is close at 98.6%.
on shadcn/ui. Ant Design reaches 80.3%. These gaps matter even when shared props produce the same control.
The full scorecard
The bars show the shape. These are the underlying results, including type text and speed.
| library | components matched / RDT | props found | same control | same text | same or cosmetic | Caliper | RDT |
|---|---|---|---|---|---|---|---|
| Mantine | 331 of 389 | 99.7% | 93.1% | 48.0% | 50.9% | 55 ms | 1.3 s |
| Chakra | 592 of 773 | 98.6% | 100% | 19.4% | 19.4% | 550 ms | 24.8 s |
| shadcn/ui | 1,519 of 1,594 | 39.5% | 86.7% | 61.3% | 74.7% | 115 ms | 4.0 s |
| Ant Design | 162 of 258 | 80.3% | 94.8% | 69.6% | 78.5% | 86 ms | 2.4 s |
| React Spectrum | 1,087 of 1,408 | 99.7% | 96.9% | 67.4% | 68.9% | 130 ms | 2.2 s |
What is a match?
- Components: the same name in the same source file. We show how many components with RDT props Caliper also found.
- Props found: RDT’s non-React props present on those shared components. This is recall against RDT, not proof that every type is correct.
- Same control: for props both report, the type maps to the same Storybook control kind: boolean, number, text, select, function, node or object.
- Same text: exact type text after RDT’s own normalization. “Same or cosmetic” also forgives formatting differences such as union order and
Array<T>spelling.
Where types get hard
The misses are visible in the scorecard. We track their causes rather than hiding them in an average.
Unbound generics
A conditional or mapped type can stay opaque when its type parameter has no concrete value. Nested inference can leave part of a type unresolved.
Anonymous wrappers
Some wrapper calls without a type argument and some styled-component forms are still missed by the default extractor.
An experimental TypeScript 7.1 CLI pass in source can recover some harder types on exported function components. It is an opt-in for the next alpha, outside this 0.4.0 run.
RDT is a comparator
RDT can miss or widen types too. Caliper sometimes keeps literal choices that RDT prints as string. That is why we also ask TypeScript 7.1’s checker to compare the structure of a prop type: literals, unions, object fields, function parameters and index signatures.
The checker run labels shared props as identical, differently spelled, less precise or wrong. On the October baseline, shadcn/ui has 14.5% “less precise” and 0.1% “wrong” against that oracle; Spectrum has 30.2% “less precise,” mostly a responsive type printed without its object form. These are separate results with a different component set from the RDT chart above.
The checker used for this measurement is separate from Caliper’s experimental TypeScript-backed extraction pass.
How we kept it fair
The five libraries are real projects, and the scorecard keeps each comparison’s denominator visible.
- 01 / pin
Fix the project
Each public repo is checked out at a named commit and installed with its own package manager. Its dependencies can resolve.
- 02 / filter
Match the source
Tests, stories, demos and declaration files are removed. Both read the same source; Caliper loads dependencies, full HTML attributes and unexported components.
- 03 / score
Use named denominators
Match components by file and name. Count RDT’s non-React props on those components; compare controls only where both tools report a prop.
Ant Design has no committed lockfile, so its dependencies are freshly resolved. The harness logs any other install that needs a fresh resolve. These are Caliper 0.4.0 results from October 23; newer extraction work needs a rerun. The measurement page shows the timing boundaries.