I am working on such project and this particular part implement absolutely the same way as it would be in native android development.
You fallback the common base viewmodel to expect/actual so you can extend it from androidx ViewModel for android part.
And you might need to implement expect/actual getViewModel() composable to provide the viewmodel into the compose if you DI library doesn't provide that out of the box for KMP just yet