PreviewLabDefaults
object PreviewLabDefaults
Contains the default values used by PreviewLab.
This object provides sensible defaults for PreviewLab parameters that can be used when creating custom PreviewLab wrappers or when you want to reference the default values.
Usage
@Composable
fun MyCustomPreviewLab(
modifier: Modifier = Modifier,
screenSizes: List<ScreenSize> = PreviewLabDefaults.screenSizes(),
isHeaderShow: Boolean = PreviewLabDefaults.isHeaderShow(),
content: @Composable PreviewLabScope.() -> Unit,
) = PreviewLab(
modifier = modifier,
screenSizes = screenSizes,
isHeaderShow = isHeaderShow,
content = content,
)Content copied to clipboard
See also
Functions
Link copied to clipboard
Default graphics layer for capturing screenshots.
Link copied to clipboard
Default content root wrapper.
Link copied to clipboard
Default enable state for PreviewLab UI.
Link copied to clipboard
Default inspector tabs for PreviewLab.
Link copied to clipboard
Default visibility for the PreviewLab header.
Link copied to clipboard
Default value indicating whether PreviewLab is inside a Gallery card body.
Link copied to clipboard
Default screen sizes for PreviewLab.
Link copied to clipboard
Default state for PreviewLab.