Hello! I am using the `kotlin-mui` wrapper and not...
# javascript
k
Hello! I am using the
kotlin-mui
wrapper and noticing that
component
is missing as a prop on some components. Was hoping to be able to set the
component
to
react.router.dom.Link
to use with the router. Was wondering if there was a work around possibly?
t
Fast WA - strict extension for property
k
Sorry, don’t follow. Im a backend Kotlin guy mostly :)
t
đź‘€ 1
k
ah. got it, ty!
This is working for me, ty!
t
Extension is preferred
With extension you will receive warning, when problem will be fixed
k
ok, got it
Ok, how do I set the Link props now?
Ok, this is working, just need to get rid of the underline in the Link and I'm gtg :)
t
inline var ButtonProps.component: ElementType<*>?
// not
Unit
k
ok, how do I pass in the
LinkProps
like
to
and
reloadDocument
?
should I extend the
create
method that the
mui
components have as well?
t
k
Awesome, that helped. Ended up with this and now the button works and has the correct
mui
style. Thank you!