Package-level declarations
Types
Link copied to clipboard
data class CollectedPreview(val id: String, val displayName: String = id, val filePath: String? = null, val startLineNumber: Int? = null, val code: String? = null, val content: @Composable () -> Unit) : PreviewLabPreview
Link copied to clipboard
Link copied to clipboard
data class PreviewLabEvent(val title: String, val description: String? = null, val createAt: Instant = Clock.System.now())
Represents an event that occurred during preview interaction
Link copied to clipboard
interface PreviewLabPreview
Have me.tbsten.compose.preview.lab.gallery.previewlist.PreviewTreeNode.Preview information collected by gradle plugin. It can be used to display the Preview catalog by passing it to PreviewLabGallery.
Properties
Link copied to clipboard
CompositionLocal that indicates whether the current composition is inside a PreviewLabGallery card body. When true, PreviewLab will skip rendering its full UI and only render the preview content directly. This is used to show scaled-down preview thumbnails in the gallery view.
Link copied to clipboard
CompositionLocal that provides the current PreviewLabPreview being displayed. This is set by PreviewLabGallery when a preview is selected.
Functions
Link copied to clipboard
fun PreviewLabPreview(id: String, displayName: String = id, filePath: String? = null, startLineNumber: Int? = null, code: String? = null, content: @Composable () -> Unit): PreviewLabPreview
Create a CollectedPreview instance.