ContentContext

class ContentContext(val state: PreviewLabState, val inspectorTabs: List<InspectorTab>)

Context providing access to PreviewLabState for tab content.

Constructors

Link copied to clipboard
constructor(state: PreviewLabState, inspectorTabs: List<InspectorTab>)

Properties

Link copied to clipboard
Link copied to clipboard

The current PreviewLabState, providing access to fields, events, and other preview state

Functions

Link copied to clipboard

The content to display when the tab is selected. Implement this composable function within ContentContext receiver scope to access the PreviewLabState via ContentContext.state.