ViewComponent best practices? #3329
Replies: 1 comment
-
Hi @phil-janeapp, thanks for asking about this! Glad to hear Primer is useful to you 😄 The ViewComponent website doesn't really talk about specific, in-the-weeds component development, so this is probably the right place to have that conversation.
Great question! IMO there are a couple of things to consider:
Another great question. In my experience, there are two ways to handle this:
|
Beta Was this translation helpful? Give feedback.
-
Hey team! 👋
We're using ViewComponent and Primer (not necessarily basing everything completely on Primer but definitely taking a lot of cues from it). I've been struggling to find a comprehensive list of best practices and am curious if you have a list of guidelines. I'm aware of the list on the ViewComponent website but am also considering some other items, such as:
CTA
component that renders aTextbox
inside it. How do you make it simple to pass atitle
anddescription
through to theTextbox
without necessarily exposing the implementation details that theCTA
is rendering thatTextbox
?Thank you! ❤️
Beta Was this translation helpful? Give feedback.
All reactions