{"repo":"dokar3/compose-sonner","free":true,"listed":false,"github":"https://github.com/dokar3/compose-sonner","clone":"git clone https://github.com/dokar3/compose-sonner.git","description":"An opinionated toast component for Compose Multiplatform.","language":"Kotlin","stars":357,"topics":["android","compose","compose-multiplatform","desktop","jetpack-compose","kotlin","toast","web"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"Compose Sonner An opinionated toast component for Compose Multiplatform. This is a Compose implementation of sonner - an excellent toast library by emilkowalski. Demo WasmJs Demo https://dokar3.github.io/compose-sonner/ Video https://github.com/dokar3/compose-sonner/assets/68095777/ff97c6cc-012e-4152-8c40-0d2ba382c757 Features - Almost the same as emilkowalski's React implementation: UI, Animations, and even the API. These include: - Stacked toasts and expanded toasts - Different types and rich colors - Transitions - Positions (Alignments) - Swipe down to dismiss - Close button and action button - Custom icons - Durations - Lazy and performant, you can display a large amount of toasts at once - Fully customizable, you can render your own Composable on it - Supports both Material 2 and Material 3 because it does not depend on them Roadmaps - [x] iOS target. Done in #8, thanks to @shubhamsinghshubham777! - [x] Online wasmJs sample Usages Installation build.gradle(.kts) libs.versions.toml Basic Types Dark theme Positions Durations Updates Dismiss Buttons Icons Dismiss pause Other Interact with ViewModel UiState Define the mapping function Then Or use an adapter function License","default_branch":null,"files":null,"tree":[],"storefront":"/r/dokar3","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dokar3/compose-sonner/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}