Reactivity extended to components defined in src imported into markdown files? #1711
-
Hello there, I'm attempting to follow some of the project structure best practices that are laid out in https://observablehq.com/framework/project-structure, and I'd love to define a chart element that has interactive features to it within the Can someone advise how to extend reactivity into components defined within |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Oh on second thought it sounds like Generators might be more like the option I'm looking for. I'll check into this, but if anyone has a more simple/framework idiomatic solution I'm all ears. |
Beta Was this translation helpful? Give feedback.
-
Sounds like you want to use |
Beta Was this translation helpful? Give feedback.
Sounds like you want to use
view
(orGenerators.input
). If your chart emits input events and exposes achart.value
, you can use with itview
to declare a reactive value that is driven by interacting with a chart. There’s an example of this in the docs.