customClickBehavior is a bit verbose, but I chose it to match the pattern used by the top level Frame and InteractionLayer APIs. I felt it made more sense to put this prop on the whole legend rather than providing a custom customClickBehavior for each legend group (as I originally commented in the linked issue), but can revise this if needed later.
A future refactor could make the shared behavior between the vertical/horizontal renderers a bit more explicit
We may want to port these legend docs over to the semiotic-docs repo
We may want to document the existence of the Legend property on components like the NetworkFrame, otherwise it's unlikely people will discover this component
Summary
customClickBehavior
property to the Legend component API.Example
Discussion / Future Proposals
customClickBehavior
is a bit verbose, but I chose it to match the pattern used by the top levelFrame
andInteractionLayer
APIs. I felt it made more sense to put this prop on the whole legend rather than providing a custom customClickBehavior for each legend group (as I originally commented in the linked issue), but can revise this if needed later.semiotic-docs
repo