I am trying out hooks.js
and scoped CSS functionalities introduced in 0.8+ Surface, and have a few questions wrt. hooks and styling on built in components like Form
etc.
- how do I attach a hook to a built-in component that is instantiated in my custom component?
:hook
only works on HTML elements. Not all components are html element butForm
is. So theoretically I should be able to attach a hook to aForm
, but it is not obvious how to do that - how do I style a built-in component that is instantiated in my custom component, using a scoped CSS? The
data-s-*
are not inherited by sub components. So a built-in component become un-styled by the scooped CSS.
Thanks in advance!