Package-level declarations
Types
Link copied to clipboard
open class PreviewLab(defaultState: @Composable () -> PreviewLabState = { rememberPreviewLabStateFromUrl() }, defaultScreenSizes: List<ScreenSize> = ScreenSize.SmartphoneAndDesktops, contentRoot: @Composable (content: @Composable () -> Unit) -> Unit = { it() }, defaultIsHeaderShow: @Composable () -> Boolean = { LocalDefaultIsHeaderShow.current }, defaultInspectorTabs: @Composable () -> List<InspectorTab> = { InspectorTab.defaults }, disableTrailingLambda: Nothing? = null)
PreviewLab is a powerful preview environment for Compose UI components that enables interactive development and testing. It provides dynamic field controls, event tracking, and multi-device previews to enhance the development experience.
Link copied to clipboard
The scope of the PreviewLab, which provides methods to create fields, handle events, and manage layout nodes.
Link copied to clipboard
class PreviewLabState(initialContentOffset: Offset = Offset.Zero, initialContentScale: Float = 1.0f, initialIsInspectorPanelVisible: Boolean = true)
Class that holds the state of PreviewLab. Mainly holds state values that have changed due to user interaction during debugging.
Functions
Link copied to clipboard
Finds a mutable field by its label in the PreviewLabState, throwing an error if not found.
Link copied to clipboard
Finds a mutable field by its label in the PreviewLabState.
Link copied to clipboard
URLパラメータからPreviewLabStateを初期化するComposable関数。 contentScaleなどの状態をURLパラメータから復元する。