Kobalte 13.x update issue
I get the following error. Didn't have this issue until after the update. Before the class and children props were applied.
There were some structural changes but dont know if this was part of it or not.
Asking here first if anyone knows if there was a change made. Otherwise will create a bug report on github.
2 Replies
Kobalte now only includes props it uses internally, this is to work with polymorphism.
If you want the the entire props you can use
PolymorphicProp<T, ContextMenuSubTriggerRootProps & YourCustomProps>
where T is a generic extends ValidComponent = "button"
and YourCustomProps
contains class
and children
.
If you don't want to expose as
to end users you can use OverrideComponentProps<"button", ContextMenuSubTriggerRootProps>
without needing YourCustomProps
.
Our full documentation is at https://kobalte.dev/docs/core/overview/polymorphism#typesOk thanks, feels more like a pain now that it isnt include but good to know