Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Commit 0744ff8

Browse files
authored
Release/2.0.0 (#38)
1 parent a76e335 commit 0744ff8

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

README.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

55
This 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")
2828
1. [x] Android (SDK > 28)
2929
2. [x] iOS
3030
3. [x] Desktop (JVM)
31+
4. [x] JS/Wasm
3132

3233
## Usage
3334

3435
Apply and customize shadow using the `dropShadow` Modifier:
3536

37+
### Drop Shadow
3638
```kotlin
3739
Box(
3840
Modifier
39-
.size(50.dp)
4041
.dropShadow(
4142
shape = RectangleShape,
4243
color = Color.Black.copy(.5f),
@@ -48,8 +49,24 @@ Box(
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
5268
We 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">

compose-shadow/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
 (0)