Skip to content

Conversation

@ericwaetke
Copy link

This is still work in progress!

After using the Payload UI components quite a bit in plugins and custom components, I, as well as other found it would be great to have a better documentation for the UI library

#9489

How?

Right now, the files I've added are very limited, but I wanted to open this PR as soon as possible, to give others the opportunity to also start contributing without doing the same work twice or more.

Probably the best workflow is to look at https://github.com/payloadcms/payload/tree/main/packages/ui and use the types as a guide for the docs.

I've added very basic docs for the <Button /> component based on these types: https://github.com/payloadcms/payload/blob/main/packages/ui/src/elements/Button/types.ts

The Overview Structure is still all over the place, and I'm not sure if it's correct and complete. I will probably go back to the ui package in this repo and create a better structure.

@ericwaetke ericwaetke changed the title docs: Documentation for Payload UI Components Mar 1, 2025
@ericwaetke ericwaetke changed the title docs: add documentation for Payload UI Components Mar 1, 2025
@ericwaetke ericwaetke marked this pull request as draft March 1, 2025 16:22
@github-actions github-actions bot added the stale label Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 participant