stevdza-san / KotlinBootstrap

Use the official Bootstrap UI components with Kotlin and Compose HTML, to build a frontend on the web.
167 stars 9 forks source link

Page become blank, when I add any bootstrap element #15

Closed Stipsaa closed 2 months ago

Stipsaa commented 2 months ago

When I add any bootstrap element, BSDropdown() for example, my page become totally blank and empty. Could you help, please?

@Page
@Composable
fun HomePage() {
    Column(
        modifier = Modifier.fillMaxSize(),
        horizontalAlignment = Alignment.CenterHorizontally
    ) {
        BSDropdown(
            placeholder = "Select a Platform",
            items = listOf("Android", "iOS", "Web"),
            onItemSelect = { index, value -> }
        )

        SpanText("Some text")
    }
}

image

stevdza-san commented 2 months ago

What versions are you using exactly, for kotlin, compose, and kobweb?

Stipsaa commented 2 months ago

What versions are you using exactly, for kotlin, compose, and kobweb?

jetbrains-compose = "1.6.1" kobweb = "0.17.1" kotlin = "1.9.23"

stevdza-san commented 2 months ago

Try these version and let me know if it works:

jetbrains-compose = "1.5.12" kobweb = "0.16.1" kotlin = "1.9.22"

Stipsaa commented 2 months ago

Try these version and let me know if it works:

jetbrains-compose = "1.5.12" kobweb = "0.16.1" kotlin = "1.9.22"

It helped! TY