Connect with us

Code

Component Box – A Kotlin multiplatform server-driven UI

A Kotlin multiplatform library for building dynamic server-driven UI.

  • Material Component-Based
  • Interoperable
  • Dynamic
  • What You See Is What You Get

Documentation

You can find Component Box documentation on the website.

Check out the Getting Started page for a quick overview.

Examples

class Screen(
    private val componentBoxUrl: String,
    private val presenter: ComponentBoxPresenter,
    private val context: Context
): ComponentBoxFragment()
@Composable
fun Screen() {
    val zipline = ComponentBoxZipline(getZiplineUrl(), getScript())
    val presenter = ComponentBoxPresenter(zipline)

    ComponentBoxView(
        componentBoxUrl = getComponentBoxUrl(),
        presenter = presenter,
        context = getContext(),
        Loading = { Loading() },
        Fallback = { Fallback() }
    )
}

Component Box on GitHub: https://github.com/dropbox/componentbox
Platform: Kotlin multiplatform
⭐️:123
Advertisement

Trending