Skip to content
ํ”„๋กœ์ ํŠธ

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

Original

EmojiSlider

EmojiSlider web example

Try the web example

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.

๊ด€๋ จ ํ”„๋กœ์ ํŠธ ์‚ดํŽด๋ณด๊ธฐ

๋ถˆ๋Ÿฌ์˜ค๋Š” ์ค‘โ€ฆ