Suggestion for API Info component #506
Replies: 3 comments 6 replies
-
Sure! I've planned for the playground but have too many things to do recently. |
Beta Was this translation helpful? Give feedback.
-
Btw let me give you some useful info for looking into the <APIInfo>...</APIInfo> Each operation is a request, an item in the |
Beta Was this translation helpful? Give feedback.
-
Hey @fuma-nama! Wanted to ask about the way I build the Playground component. Right now I have it, so you need to pass the fields you want to be rendered as prop, not children. Kind of like this:
Is this approach fine, or it should be somehow passed as children? Im currently working on making objects, arrays and arrays of objects work, but tbh have no idea how to make the ability to have custom fields, like Mintlify has over here |
Beta Was this translation helpful? Give feedback.
-
Hey @fuma-nama!
I am currently coding documentation with custom layout, while still using fumadocs as base, and planning to create a custom component to replace the default API Info, so there will be an option to send an actual request (fill out body, headers, see response).
Basically, similar to what Mintlify has, but with nicer styles and shadcn for inputs
Would you consider merging PR with such component to fumadocs? I also want to write docs for all API components, maybe people would like to write their own scripts to parse OpenAPI and it will be easier to do so if they understand what each component does.
Beta Was this translation helpful? Give feedback.
All reactions