PreparePreview

fun PreparePreview(composablePreview: @Composable () -> Unit)

A utility composable for previewing other composable within Compose preview environment.

This composable sets up the environment for preview mode and executes the provided composablePreview.

Example Usage:

PreparePreview {
SampleComposable()
}

Parameters

composablePreview

The composable to be previewed.