Skip to content
This repository was archived by the owner on Nov 3, 2024. It is now read-only.

Repository files navigation

Units (for Compose Multiplatform)

A helper library for defining spacing and textsizes as a multiple of some base unit (default 16dp/16sp).

Build Lint

Installation

Stable Preview

implementation "cl.emilym.kmp:units:<latest>"

Usage

CompositionLocalProvider(
    LocalBaseDp provides 8.dp
) {
    // Box is sized to 16dp by 16dp
    Box(Modifier.size(2.rdp))
}

About

Experimental Compose Multiplatform Library

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages