Replies: 1 comment
-
Hey, I've already created a MCP server that does exactly that using a JSON file with component data, but it's just not reliable enough yet to be made available to the public, agents using it make a lot of mistakes, and by a lot, I mean A LOT, so you're 100% safer if you handle things yourself. I understand the idea, but it's just not reliable, so this will be on hold for the foreseeable future. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to propose the addition of LLM-ready documentation blocks within the React Bits component library. This feature would be targeted at developers using large language models (LLMs) like ChatGPT, Copilot, or similar tools to generate UI code and improve developer productivity.
Problem:
With the rise of LLM-assisted coding, there's a growing trend of developers asking AI tools to generate or modify UI based on component libraries. However, current documentation formats are written for humans and lack the structured, machine-readable context that LLMs can fully leverage.
As a result, generated code often lacks accuracy or fails to align with the design system conventions of React Bits — especially in terms of props, usage patterns, and design intent.
Proposed Solution:
Introduce AI-optimized documentation blocks or metadata files alongside each component that provide:
Clear, concise usage examples with consistent patterns
Explicit component purpose and behavior descriptions
Prop definitions and default values in natural language and structured JSON
Common design variants and best practices
“Intent tags” or metadata like:
This could be implemented via:
Button.llm.json
)Benefits:
Would love to hear thoughts from the team on feasibility, format preferences, and whether there's interest in exploring this frontier!
Happy to collaborate further or contribute a proof of concept.
Beta Was this translation helpful? Give feedback.
All reactions