You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some simple Compose Multiplatform wrappers of common components, layouts, and Material Design components for Android/desktop/iOS (those in `androidx.compose.material`) and Compose HTML (mainly based on [KMDC](https://github.com/mpetuska/kmdc))
6
+
Some simple unified Compose Multiplatform wrappers of common components, layouts, and Material Design components for `androidx.compose.material` (officially supported on Android, desktop (JVM), iOS, web (Kotlin/Wasm)) and Compose HTML (mainly based on[Kobweb Silk](https://github.com/varabyte/kobweb?tab=readme-ov-file#silk) and[KMDC](https://github.com/mpetuska/kmdc))
7
7
8
-
We try to make the function types of the composable components follow those of the desktop and Android ones
9
-
in `androidx.compose.foundation` and `androidx.compose.material`, meanwhile being compatible with the Compose HTML APIs. However,
10
-
only subsets of the composables and composable arguments are supported due to the API differences, limitations of the
11
-
Compose HTML composables this project depends on, and our limited effort.
8
+
<!-- a set of APIs for Compose HTML similar to those in `androidx.compose.material` -->
9
+
10
+
We try to make the function types of the composable components follow those in `androidx.compose.foundation` and `androidx.compose.material`, meanwhile being compatible with the Compose HTML APIs. However, only subsets of the composables and composable arguments are supported due to the API differences, limitations of the Compose HTML composables this project depends on, and our limited effort.
12
11
13
12
Visual consistency across different platforms is not guaranteed.
14
13
15
14
This project is prototype and there is no documentation yet. Check out [the demo project](demo) on how to use the components.
16
15
17
-
<!--
18
-
There is no plan to support Apple platforms until there is official support from [Compose Multiplatform](https://github.com/JetBrains/compose-jb). Check out <https://github.com/cl3m/multiplatform-compose> for some experiments and prototypes on supporting iOS with Compose Multiplatform.
19
-
-->
20
-
21
16
## Supported features
22
17
23
18
### Components
24
19
25
20
#### Common (Foundation) components
26
21
27
22
-`BasicText`
28
-
-`RawText`
23
+
24
+
##### `ext` components
25
+
26
+
-`InlineBasicText`
29
27
30
28
##### Layouts
31
29
@@ -41,9 +39,14 @@ There is no plan to support Apple platforms until there is official support from
41
39
-`IconButton`
42
40
-`ScrollableList`/`LazyColumn` (visually inconsistent for now)
43
41
-`Text`/`MaterialText`
42
+
-`TextField`
44
43
-`TopAppBarScaffold`
45
44
46
-
### Styles
45
+
#### Components in the `ext` packages
46
+
47
+
The components in the `ext` packages don't follow the `androidx.compose` APIs exactly, but rather provide wrappers are idiomatic and conventional on both kinds of targets, wrapping different APIs which can't be unified following the `androidx.compose` APIs.
48
+
49
+
### Styles (obsolete in the legacy module, for removal)
47
50
48
51
The `ModifierOrAttrsScope.styles` function and the `StyleScope` class provide a universal interface for `Modifier`s and CSS styles.
View [all the artifacts on Maven Central](https://search.maven.org/search?q=g:com.huanshankeji%20AND%20a:compose-multiplatform-*).
86
+
87
+
This project depends on [Kobweb](https://github.com/varabyte/kobweb) which is not published to Maven Central yet, so you have to add the following Maven repository:
The Kotlin/JS (Compose HTML) portion of this project depends on [Kobweb Compose](https://github.com/varabyte/kobweb/blob/main/frontend/kobweb-compose/README.md) of [Kobweb Silk](https://github.com/varabyte/kobweb?tab=readme-ov-file#silk) which is a UI layer built upon Compose HTML that provides `Modifier` APIs (type-safe CSS API wrappers) and layouts. Here is a list of topics in their README.md that should be helpful when you use this library in Compose HTML:
1.[attrsModifier and styleModifier](https://github.com/varabyte/kobweb?tab=readme-ov-file#attrsmodifier-and-stylemodifier)
102
+
1.[General purpose improvements on top of Compose HTML and Kotlin/JS](https://github.com/varabyte/kobweb?tab=readme-ov-file#general-purpose-improvements-on-top-of-compose-html-and-kotlinjs)
103
+
1.[What about Compose Multiplatform for Web?](https://github.com/varabyte/kobweb?tab=readme-ov-file#what-about-compose-multiplatform-for-web)
0 commit comments