For anyone who had the same question but didn't read the full thread: The general answer to "I would like to mock view model if you can't instantiate it in a preview"... your widget should be abstracted in such a way that it is not depending on a data model that is only available in your Android app, and instead should take in an interface that can be instantiated within your preview function and passed to the Composable.