Replies: 2 comments 3 replies
-
I've started a draft PR #29 with an approach to handle this |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi Shiti! So you are suggesting that we should have a general type for a category of components, right? We might have to add different props or have different types for the same props when implementing different libraries. If we need to do this, is it ok to have a library-specific type extending the general type? For example, tooltipFormatter props has different types in Recharts and Chartjs
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Types/Interfaces with common fields and a well-defined mechanism for handling the update data structure will make it easier to develop and validate custom components. These can then be used to define basic implementations of components as well as simplify extending them.
Currently, most components define their props and expose it as types but this is not uniform.
TextProps
andUpdateableText
which are used in both text and markdown components.OpenLayersMapProps
,RechartsTimeSeriesProps
,YoutubeVideoProps
. The issue with this is that it makes it harder to maintain functional parity across different implementations of same component. For example, a timeseries component using d3.js or chart.js were to be implemented.Beta Was this translation helpful? Give feedback.
All reactions