Skip to content

Commit 6025e7d

Browse files
committed
misc: Create README.md
1 parent 1be6902 commit 6025e7d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## MiuiX
2+
3+
MiuiX is a UI component based on [Compose Multiplatform](https://www.jetbrains.com/compose-multiplatform/). Currently supports Android / iOS / Desktop / WebAssembly / macOS.
4+
5+
### Usesge [![Maven Central](https://img.shields.io/maven-central/v/top.yukonga.miuix.kmp/miuix)](https://search.maven.org/search?q=g:top.yukonga.miuix.kmp)
6+
7+
8+
```
9+
implementation("top.yukonga.miuix.kmp:miuix:<version>")
10+
```
11+
12+
### Start
13+
14+
```
15+
@Composable
16+
fun App(
17+
colorMode: MutableState<Int> = remember { mutableStateOf(0) }
18+
) {
19+
MiuixTheme(
20+
colorScheme = if (isSystemInDarkTheme()) darkColorScheme() else lightColorScheme()
21+
) {
22+
// Other content...
23+
}
24+
}
25+
```

0 commit comments

Comments
 (0)