Vendoring components #556
Unanswered
kurtbuilds
asked this question in
Q&A
Replies: 0 comments
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.
-
Hi,
I'm using tremor and running into limitations with the API (I want to use
hide
onRecharts.Line
withinLineChart
,valueFormatter
onXAxis
, and many others). Right now the way I'm thinking about it is trying to vendor the components (right now, specificallyLineChart
), and then use the tremor function component as a starting point for the implementation. However, that doesn't work easily, as I'm running into a ton of import errors, because it depends on items that appear not to be exported by tremor. Here's a representative example of I'm trying to import:Those library paths were all auto-completed by my editor, and they don't resolve, hence the errors. I'm currently having some success rewriting them by manually looking through the files:
However, this approach is obviously extremely fragile. I'm not an expert at Typescript, but, I don't think I'm supposed to be depending on something that's in a
dist/
folder?My question is: do you have recommendations for the best approach to vendoring components, or alternatively, what is the best way to define my own function components, (heavily) inspired by Tremor components, and using all the same styling, but which would give me full access to the underlying Recharts API?
Lastly, I wanted to say thank you for creating Tremor. I can't express enough how much easier it makes it to create beautiful dashboards and charts.
Beta Was this translation helpful? Give feedback.
All reactions