NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Way We Notice, That's What Really Matters: Instantiating UI Components with Distinguishing Variations

Priyan Vaithilingam, Alan Leung, Jeffrey Nichols, Titus Barik

TL;DR

Celestial is a new Storybook.js add-on that helps developers explore the massive design space of highly parameterized UI components by automatically generating "distinguishing variations"—examples that are both visually distinct and realistically populated. By combining symbolic code analysis with LLM-driven data generation, it transforms a tedious, manual mocking process into an intuitive, exploratory activity.

What Problem Does This Paper Address?

Modern front-end development relies heavily on reusable, highly parameterized UI components. However, understanding how a component behaves under different property combinations is incredibly difficult. Documentation is often sparse or outdated, and creating realistic mock data manually is a massive time sink.

Developers are typically left with two bad options: look at abstract examples filled with flat "Lorem Ipsum" text, or write tedious mock data pipelines themselves. Randomly generated data often looks broken or unnatural, failing to show how the component actually behaves in production contexts. To solve this, the authors argue that developers need variations that are both distinct (showing meaningful visual differences) and mimetic (mimicking real-world data conventions).

Methods

The authors introduce a hybrid framework implemented in a tool called Celestial, which integrates directly into the popular component workshop environment, Storybook.js:

  • ComponentAnalyzer: Uses static analysis (AST parsing via Babel) to track how properties flow into the component's code. It categorizes visual impact into Structure (conditional rendering), Content (text interpolation), and Styling (CSS classes), assigning a visual impact score to prioritize which properties to vary.
  • CoverageAnalyzer: Tracks which parts of the component's design space have been tested (categorical, boolean, string, numeric, object properties) and identifies gaps.
  • MimeticSampler: Uses a Large Language Model (GPT-4o) to jointly sample property values. Crucially, it enforces mimesis (real-world plausibility, like matching a snowy weather description with a freezing temperature) and distinctness (ensuring new variations look visually different from previous ones), guided by the CoverageAnalyzer's feedback and optional natural language instructions from the user.
The Celestial user interface overview, showing the visual gallery (A), user prompt box (B), and coverage analysis panel (C).

Datasets

The paper evaluates its approach using:

  • An inspection of 5 enterprise component workbenches containing 253 components to establish baseline practices.
  • A technical evaluation dataset consisting of 10 complex components from the Ant Design library (spanning 172 total properties) to test the accuracy of the visual impact classifier.
  • Three custom-adapted complex components used in the user study: ProductCard, WeatherCard, and ProfileCard.

Key Insights and Ideas

  • Mimesis Brings Components to Life: Abstract placeholder text makes components feel dead. When an LLM injects contextually accurate data (e.g., translating a product card into Arabic and automatically enabling right-to-left rendering), developers can instantly spot layout bugs and edge cases.
  • Coverage as a Compass: Instead of guessing what properties to tweak, showing developers a structural coverage map of the component's design space transforms exploration from a random guessing game into a systematic workflow.
  • The Craving for Destruction: While realistic data is great for understanding normal behavior, developers inherently want to break things. A key insight from the user study was that developers actively desired an "adversarial mode" to generate extreme, unnatural inputs (like massive strings or missing fields) to test component resilience.

Key Results

  • The ComponentAnalyzer achieved 83.1% accuracy in classifying the visual impact of properties compared to human ground truth, with extreme misclassifications (e.g., marking a high-impact property as low) occurring in only 1.7% of cases.
  • In a user study with 12 professional front-end developers, participants generated an average of 13.1 variations per component over 2.87 iterations.
  • 100% of participants agreed that Celestial helped them explore a broad range of variations and understand the component's full possibilities, validating that it successfully shifted component instantiation from a manual chore to an exploratory activity.

Limitations and Future Work

  • Visual vs. Behavioral: Celestial currently only analyzes and varies properties that impact visual rendering, ignoring behavioral or interactive state changes (e.g., what happens when a button is clicked).
  • LLM Flaws: Relying on LLMs introduces the risk of hallucinations or syntax errors, though Celestial attempts to filter out type mismatches using strict JSON outputs.
  • Adversarial Testing Gap: The current sampler is heavily optimized for realistic (mimetic) data, making it difficult for developers to intentionally generate the broken, edge-case data they want for stress-testing.

Summary updated

BibTeX
@inproceedings{vaithilingam2026way,
  author = {Priyan Vaithilingam and Alan Leung and Jeffrey Nichols and Titus Barik},
  title = {{The Way We Notice, That's What Really Matters: Instantiating UI Components with Distinguishing Variations}},
  booktitle = {CHI},
  year = {2026},
  doi = {10.1145/3772318.3790621},
}

Loading related content...

Figure