SilkWidgetVariables

@Composable
fun SilkWidgetVariables(provideElement: () -> HTMLElement)(source)

Deprecated

Silk styling has been streamlined to operate based on a single color mode class, which automatically provides widget variables. Use `ColorModeAware` to set this class instead.

Set all CSS variables needed by the Silk library to work.

Parameters

provideElement

An element which must live at a point in the DOM tree above any Silk widgets. This method will be called inside a remember block, meaning it will only be triggered once per composition.


@Composable
fun SilkWidgetVariables()(source)

Deprecated

Silk styling has been streamlined to operate based on a single color mode class, which automatically provides widget variables. Use `ColorModeAware` to set this class instead.

Replace with

ColorModeAware()

Set all Silk variables on the DOM root.


@Composable
fun SilkWidgetVariables(elementId: String)(source)

Deprecated

Silk styling has been streamlined to operate based on a single color mode class, which automatically provides widget variables. Use `ColorModeAware` to set this class instead.

Replace with

ColorModeAware(elementId)

Set all Silk variables on an element with the target ID name.


@Composable
fun SilkWidgetVariables(element: HTMLElement)(source)

Deprecated

Silk styling has been streamlined to operate based on a single color mode class, which automatically provides widget variables. Use `ColorModeAware` to set this class instead.

Replace with

ColorModeAware(element)