Component Box ·
A Kotlin multiplatform library for building dynamic server-driven UI.
- Material Component-Based
- Interoperable
- Dynamic
- What You See Is What You Get
Learn how to use Component Box in your project.
Installation
implementation("com.dropbox.componentbox:componentbox:0.1.0")
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() }
)
}
Contributing
Evolving Component Box is the main reason we published this repository. PRs are welcome!
Contributing Guide
Read our contributing guide to learn about our development process, how to propose fixes and enhancements, and how to build and test your changes.
Good First Issues
Start with one of our good first issues!
License
Copyright (c) 2022 Dropbox, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.