AfterLabel custom component for Fields #4019
felskov
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
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.
-
I've found myself frequently wanting to add custom content next to the label (for instance "Auto-translate" or "Auto-generate" buttons). Currently I need to swap the entire field to achieve this, which is cumbersome and I suppose potentially breaking when the PayloadCMS UI changes in the future.
I would like to be able to insert custom content after the label with an "AfterLabel" custom component, so that I could achieve this output without needing to meddle with the underlying field rendering.
Beta Was this translation helpful? Give feedback.
All reactions