bernaferrari/EmojiSlider
bernaferrari/EmojiSlider has 618 GitHub stars and 43 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-25 08:55 UTC. Last push 2026-11-19.
์ธก์ ๋ ์คํ ์ฆ๊ฐ
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- ๊ธฐ๋ก ์์ง ์ค
- in 1 month
- ๊ธฐ๋ก ์์ง ์ค
์๋ก ๊ฒน์น๋ ๊ธฐ๊ฐ์ ์์ฆ๊ฐ๋์ด๋ฉฐ ์ผ๋ณ ํฉ๊ณ๊ฐ ์๋๋๋ค. ์ธก์ ๊ฐ์ด ์์ผ๋ฉด ๋น์ ๋ก๋๋ค. ์คํ๋ ๊ด์ฌ๋๋ฅผ ๋ํ๋ด๋ฉฐ ํ์ง์ ๋ณด์ฅํ์ง ์์ต๋๋ค.
์๊ฐ
๐คฏ ์ด๋ชจ์ง๊ฐ ํ๋ถํ๊ณ ์์ ๋กญ๊ฒ ๋ง์ถค ์ค์ ํ ์ ์๋ ์ฌ๋ผ์ด๋ ์์ ฏ์ ๋๋ค.
๊ฐ๋ฐ ๋๊ตฌREADME.md
OriginalEmojiSlider
A Compose Multiplatform slider with an emoji thumb and floating reactions. Android, desktop, and web.
Install
implementation("io.github.bernaferrari:emojislider:1.0.0")
Usage
import androidx.compose.runtime.*
import androidx.compose.ui.graphics.Color
import com.bernaferrari.emojislider.EmojiSlider
import com.bernaferrari.emojislider.EmojiSliderColors
@Composable
fun RatingSlider() {
var value by remember { mutableFloatStateOf(0.5f) }
EmojiSlider(
value = value,
onValueChange = { value = it },
emoji = "๐",
colors = EmojiSliderColors(
start = Color(0xFF7C3AED),
end = Color(0xFFDB2777),
),
)
}
By default the first completed gesture locks the value and can reveal the average. For a normal slider:
EmojiSlider(
value = value,
onValueChange = { value = it },
behavior = EmojiSliderBehavior(allowReselection = true),
)
Show an average marker and tooltip after selection:
EmojiSlider(
value = value,
onValueChange = { value = it },
averageProgress = 0.72f,
behavior = EmojiSliderBehavior(
displayAverage = true,
displayTooltip = true,
tooltipText = "Average value",
),
)
Floating emoji inside clipped parents
Cards and scroll containers clip the fly-away emoji. Wrap the screen so particles draw in a shared overlay:
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.ui.Modifier
import com.bernaferrari.emojislider.EmojiSlider
import com.bernaferrari.emojislider.EmojiSliderParticleSystem
@Composable
fun Screen() {
EmojiSliderParticleSystem(modifier = Modifier.fillMaxSize()) {
EmojiSlider(
value = value,
onValueChange = { value = it },
)
}
}
Without the wrap, the slider uses a local overlay. That is fine when it has enough space and is not clipped.
API
| Parameter | Description |
|---|---|
value / onValueChange |
Controlled progress in 0f..1f. |
emoji |
Thumb and particle glyph. Default ๐. |
colors |
EmojiSliderColors โ start, end, track, active brush. |
behavior |
EmojiSliderBehavior โ seekable, reselection, direction, average / result / tooltip. |
sizes |
EmojiSliderSizes โ track, thumb, height, inset, particle min / max. |
averageProgress |
Average marker position. |
resultBitmap |
Optional image after a one-shot selection. |
sizes.trackInset defaults to half the thumb so the emoji stays on-canvas. Pass 0.dp for an edge-to-edge track.
๊ด๋ จ ํ๋ก์ ํธ ์ดํด๋ณด๊ธฐ
๋ถ๋ฌ์ค๋ ์คโฆ