How do children update props on their parents in SSR? #1621
-
Radix UI has been a huge source of inspiration for me when building my own tools. I'm currently building a UI library of my own, and I'm currently working on a Dialog as a proof of concept. Recently, I ran into the issue of updating the Ideally, if the user doesn't use a However, this doesn't seem to work when using I'm wondering how the Radix team solved this issue, as it seems like you also use context. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
radix always adds the
code is here. |
Beta Was this translation helpful? Give feedback.
radix always adds the
aria-labelledby
andaria-describedby
attributes and instead checks if parts with those ids are rendered. If not, it logs warnings explaining that:DialogTitle
is required for a11y but they can wrap it withVisuallyHidden
if they don't want it to be visible.DialogDescription
must be used unless they passaria-describedby={undefined}
to theDialogContent
part.code is here.