Hi! I'm making an experiment to inject Tailwindcss classes in datacore. I'm struggling with something: I default my linking to dc.Link which works flawlesly, but it does not allow to input a className to it. I saw the implementation here:
|
function RawLink({ link, sourcePath: maybeSourcePath }: { link: Link | string; sourcePath?: string }) { |
And I think it would be super easy to add this feature. Other raw components already allow this. It would need the util combineClasses to be available accross the repo tho.
So, Is there any concern about enabling this? I can implement it myself
Hi! I'm making an experiment to inject Tailwindcss classes in datacore. I'm struggling with something: I default my linking to
dc.Linkwhich works flawlesly, but it does not allow to input aclassNameto it. I saw the implementation here:datacore/src/ui/markdown.tsx
Line 53 in 234ab89
And I think it would be super easy to add this feature. Other raw components already allow this. It would need the util
combineClassesto be available accross the repo tho.So, Is there any concern about enabling this? I can implement it myself