This repository was archived by the owner on Jul 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 11# Compose Shadow
22
3- A Kotlin Multiplatform implementation of drop shadows for Compose Multiplatform.
3+ A Kotlin Multiplatform implementation of drop/inner shadows for Compose Multiplatform.
44
55This library will continue to be maintained until this is officially supported in Compose.
66
@@ -12,8 +12,8 @@ This library will continue to be maintained until this is officially supported i
1212
1313| ` compose-shadow ` | CMP | Kotlin |
1414| ------------------| ---------------| --------|
15+ | 2.0.0 | 1.7.1 | 2.0.21 |
1516| 1.0.0 | 1.7.0-rc01 | 2.0.21 |
16- | 0.0.1 | 1.7.0-dev1743 | 2.0.0 |
1717
1818## Installation
1919
@@ -28,15 +28,16 @@ implementation("com.adamglin:compose-shadow:$version")
28281 . [x] Android (SDK > 28)
29292 . [x] iOS
30303 . [x] Desktop (JVM)
31+ 4 . [x] JS/Wasm
3132
3233## Usage
3334
3435Apply and customize shadow using the ` dropShadow ` Modifier:
3536
37+ ### Drop Shadow
3638``` kotlin
3739Box (
3840 Modifier
39- .size(50 .dp)
4041 .dropShadow(
4142 shape = RectangleShape ,
4243 color = Color .Black .copy(.5f ),
4849 .background(Color .White ),
4950)
5051```
52+ ### Inner Shadow
53+ ``` kotlin
54+ Box (
55+ Modifier
56+ .innerShadow(
57+ shape = RectangleShape ,
58+ color = Color .Black .copy(.5f ),
59+ offsetX = 4 .dp,
60+ offsetY = 4 .dp,
61+ blur = 10 .dp,
62+ spread = 5 .dp,
63+ )
64+ .background(Color .White ),
65+ )
66+ ```
5167## Sample
5268We provided this address [ here] ( https://adamglin0.github.io/compose-shadow/sample/index.html ) for viewing the wasm online examples.
69+
5370### Screenshots
5471<img width =" 300 " alt =" image " src =" https://github.com/user-attachments/assets/36d15219-d4ea-4de9-84fe-df2cbceb0e2e " >
5572<img width =" 300 " alt =" image " src =" https://github.com/user-attachments/assets/cf1b42d1-5d92-4259-93a6-f0883b7d9dc7 " >
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ mavenPublishing {
9797 coordinates(
9898 groupId = " com.adamglin" ,
9999 artifactId = " compose-shadow" ,
100- version = " 1 .0.0"
100+ version = " 2 .0.0"
101101 )
102102 pom {
103103 name.set(" compose-shadow" )
You can’t perform that action at this time.
0 commit comments