StyleImport

fun StyleImport(importId: String, style: String, styleImportState: StyleImportState = rememberStyleImportState())

Add a Style Import to the current style.

Parameters

importId

the id of the style import.

style

the style uri or style json of the style import.

styleImportState

The state holder for the StyleImport.


fun StyleImport(importId: String, style: String, configs: ImportConfigs? = null)

Deprecated

Use overloaded StyleImport composable function with StyleImportState instead

Add a Style Import to the current style.

Parameters

importId

the id of the style import.

style

the style uri or style json of the style import.

configs

the optional ImportConfigs for the imported style.