Skip to content

docs: adds code examples for how to fully implement textStateFeature#16053

Merged
zubricks merged 1 commit into
mainfrom
docs/text-state-feature
Mar 25, 2026
Merged

docs: adds code examples for how to fully implement textStateFeature#16053
zubricks merged 1 commit into
mainfrom
docs/text-state-feature

Conversation

@zubricks

Copy link
Copy Markdown
Member

Adds a "Rendering on the frontend" section under TextStateFeature with clear examples:

  • a shared config file
  • how to reference that shared config when setting up TextStateFeature in your field
  • custom text JSX converter

@zubricks zubricks requested a review from GermanJablo March 25, 2026 13:09
@zubricks zubricks added the area: docs Improvements or additions to documentation label Mar 25, 2026
@GermanJablo

Copy link
Copy Markdown
Contributor

Thanks! I hadn't realized how awkward this is to do. We should create a utility so the user only needs to change one line. Do you think you can do it? If not, I can add it to my to-do list.

@zubricks

Copy link
Copy Markdown
Member Author

Yeah, I noticed a lot of people struggling with connecting the dots. I think that might be best coming from you though to ensure it's done the right way! For now they can take this approach, once you have the utility done we can reassess docs.

@zubricks zubricks merged commit 80ae745 into main Mar 25, 2026
21 checks passed
@zubricks zubricks deleted the docs/text-state-feature branch March 25, 2026 18:03
@github-actions

github-actions Bot commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

🚀 This is included in version v3.81.0

milamer pushed a commit to milamer/payload that referenced this pull request Apr 20, 2026
…ayloadcms#16053)

Adds a "Rendering on the frontend" section under `TextStateFeature` with
clear examples:

- a shared config file
- how to reference that shared config when setting up TextStateFeature
in your field
- custom text JSX converter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs Improvements or additions to documentation created-by: Payload team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants