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.

Caliper vs react-docgen-typescript (RDT)
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 components
    props found99.7%
    same control93.1%
  • Chakra592 of 773 RDT components
    props found98.6%
    same control100%
  • shadcn/ui1,519 of 1,594 RDT components
    props found39.5%
    same control86.7%
  • Ant Design162 of 258 RDT components
    props found80.3%
    same control94.8%
  • React Spectrum1,087 of 1,408 RDT components
    props 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.

strongest coverage99.7%

of RDT’s non-React props on matched Mantine and Spectrum components. Chakra is close at 98.6%.

the work ahead39.5%

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.

Caliper 0.4.0 versus RDT, October 23, 2026
librarycomponents matched / RDTprops foundsame controlsame textsame or cosmeticCaliperRDT
Mantine331 of 38999.7%93.1%48.0%50.9%55 ms1.3 s
Chakra592 of 77398.6%100%19.4%19.4%550 ms24.8 s
shadcn/ui1,519 of 1,59439.5%86.7%61.3%74.7%115 ms4.0 s
Ant Design162 of 25880.3%94.8%69.6%78.5%86 ms2.4 s
React Spectrum1,087 of 1,40899.7%96.9%67.4%68.9%130 ms2.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.

type resolution

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.

component discovery

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.

  1. 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.

  2. 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.

  3. 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.

See the method