Hi,
I’m working on an Accordion/Collapse type component. The Accordion component contains an instance of a Header component.
The logic for two separate components is that only the header is clickable (behaves as button to control accordion open/close states) and requires separate hover states to main accordion component.
Question:
For the purposes of this query there are 2 things I’d like to control:
- The visibility or not of an icon preceding the Title
- The title text
I’ve tried defining these as props on the header component but:
- Can’t find a wait to “hoist” them to the parent accordion component so that they are configurable from there
- When the values are set for one instance of the component, for some reason all instances update with the same props.
See here:
Project link here:
https://studio.plasmic.app/projects/4Rh7LrkoVBa6hJQg7HtFC8
Thanks in advance,
Achilles