Feedback: “Your first custom input component” lesson #3527
Replies: 5 comments 3 replies
-
I was under the false assumption that the ongoing v3 documentation has previous and next links on the individual pages given the renewed focus on the docs being a sort of cumulative build-up, and was going to write that this new area missed it. Pages like https://beta.sanity.io/docs/learn/getting-started/edit-and-publish-content literally refer to a "next step" and then the page just ends. Yeah, it's all over there on the left, but it's worth exploring more than one way to scoot around. I am a newbie to accessibility but I'd be super curious if someone tabbing was able to go from reading down to tabbing up and to the left to move forward. As far as the doc itself:
where maybe it'd be beneficial to cite an example of a different piece of information that's contextually relevant. If I am not sure of the field configuration (or what that means) there's no real antecedent. The example is about a text input, but what if I am thinking of images? What does a placeholder mean there? (rhetorical)
|
Beta Was this translation helpful? Give feedback.
-
Hello @kmelve thank you for providing this lesson. I used this when upgrading the sanity-plugin-table to V3. It would be helpful in the lesson if you could provide guidance on how to to render preview components. You'll see in the outstanding issues of the linked PR that when the preview has focus, its not updating the background color correctly. It appears that there is either a bug in sanity v3, or this is a different way to forward the focus props to the preview component. Would you be able to clarify that? |
Beta Was this translation helpful? Give feedback.
-
If you've arrived here from a search and find that the above links just redirect to the docs page I believe this guide "How to build an input component for Sanity Studio v3" would be what you're looking for. |
Beta Was this translation helpful? Give feedback.
-
Hi guys, is there a type for the props I can quickly import from the Sanity package? |
Beta Was this translation helpful? Give feedback.
-
usehooks-ts has deprecated useFetch https://usehooks-ts.com/migrate-to-v3#removed-hooks |
Beta Was this translation helpful? Give feedback.
-
Hi all!
We have published a new lesson on how to make a custom input component for Sanity Studio v3.
The goal of a lesson is not to give a deep dive into the API but rather give you a hands-on introduction to different parts of the Studio API. You should be able to go through the lesson by mostly just copy-pasting the code (sometimes we will omit code to make it readable, for example for schema files).
We also have a migration guide and a more conceptual introduction to custom input components on the way.
Let us know what you think!
Beta Was this translation helpful? Give feedback.
All reactions