Package-level declarations

Types

Link copied to clipboard

A list of values that hint to the browser as to whether it should perform image decoding along with other tasks in a single step Sync, or allow other content to be rendered before this completes Async.

Link copied to clipboard

A list of values that indicate how the browser should prioritize fetching a particular image relative to other images.

Link copied to clipboard
sealed interface ImageKind : ComponentKind
Link copied to clipboard

A list of values that hint to the user agent as to how to best schedule the loading of the image to optimize page performance.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
@Composable
fun Image(src: String, modifier: Modifier = Modifier, variant: CssStyleVariant<ImageKind>? = null, width: Int? = null, height: Int? = null, alt: String = "", loading: ImageLoading? = null, decoding: ImageDecoding? = null, fetchPriority: ImageFetchPriority? = null, ref: ElementRefScope<HTMLImageElement>? = null)

An Img tag with a more Silk-like API.

@Composable
fun Image(src: String, description: String, modifier: Modifier = Modifier, variant: CssStyleVariant<ImageKind>? = null, width: Int? = null, height: Int? = null, loading: ImageLoading? = null, decoding: ImageDecoding? = null, fetchPriority: ImageFetchPriority? = null, ref: ElementRefScope<HTMLImageElement>? = null)

Convenience version of Image where the alt description is not optional.