
A simple, customizable, and modern library for displaying alert banners in your Jetpack Compose and Compose Multiplatform applications. Easily integrate and adapt to suit any style or use case - from error notifications to informational messages!
A simple, customizable, and modern library for displaying alert banners in your Jetpack Compose and Compose Multiplatform applications. Easily integrate and adapt to suit any style or use case—from error notifications to informational messages!
Compose Alert Banner is a Kotlin library powered by Compose Multiplatform, dedicated to providing developers an easy and elegant way to add alert banners to their applications. This library comes with a robust set of features, allowing your alert banners to be as simple or as sophisticated as needed.
Whether you need to show warnings, confirmations, or general notifications, Compose Alert Banner provides an intuitive API and customizable components that blend seamlessly with your app’s UI.
Here's how it looks:
| Android | iOS | Desktop | |
|---|---|---|---|
![]() |
![]() |
![]() |
|
Compose Alert Banner is available as a Gradle dependency on mavenCentral. You can add it to your project by including the following in your build.gradle.kts file:
repositories {
mavenCentral()
}
dependencies {
implementation("com.mofeejegi.alert:alert-banner-compose:<latest-version>")
}Replace <latest-version> with the current release version available in the Releases section.
Integrating the alert banner into your Compose application is straightforward. Below is a simple example to get you started:
@Composable
fun MyApp() {
MaterialTheme {
AlertBanner(darkTheme = false) { // Declare this at the root of your application
// This is accessible at any part of your application
val alertManager = rememberAlertManager()
Column(modifier = Modifier.fillMaxSize()) {
Button(onClick = { alertManager.show("Error", AlertBannerType.Error) }) {
Text("Show Error Alert")
}
Button(onClick = { alertManager.show("Success", AlertBannerType.Success) }) {
Text("Show Success Alert")
}
}
}
}
}Compose Alert Banner offers multiple configuration options:
Contributions, issues, and feature requests are welcome! Please:
git checkout -b feature/YourFeature).git commit -am 'Add new feature').git push origin feature/YourFeature).Be sure to follow the existing code style and include tests where applicable.
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
For questions or suggestions, open an issue or reach out directly:
A simple, customizable, and modern library for displaying alert banners in your Jetpack Compose and Compose Multiplatform applications. Easily integrate and adapt to suit any style or use case—from error notifications to informational messages!
Compose Alert Banner is a Kotlin library powered by Compose Multiplatform, dedicated to providing developers an easy and elegant way to add alert banners to their applications. This library comes with a robust set of features, allowing your alert banners to be as simple or as sophisticated as needed.
Whether you need to show warnings, confirmations, or general notifications, Compose Alert Banner provides an intuitive API and customizable components that blend seamlessly with your app’s UI.
Here's how it looks:
| Android | iOS | Desktop | |
|---|---|---|---|
![]() |
![]() |
![]() |
|
Compose Alert Banner is available as a Gradle dependency on mavenCentral. You can add it to your project by including the following in your build.gradle.kts file:
repositories {
mavenCentral()
}
dependencies {
implementation("com.mofeejegi.alert:alert-banner-compose:<latest-version>")
}Replace <latest-version> with the current release version available in the Releases section.
Integrating the alert banner into your Compose application is straightforward. Below is a simple example to get you started:
@Composable
fun MyApp() {
MaterialTheme {
AlertBanner(darkTheme = false) { // Declare this at the root of your application
// This is accessible at any part of your application
val alertManager = rememberAlertManager()
Column(modifier = Modifier.fillMaxSize()) {
Button(onClick = { alertManager.show("Error", AlertBannerType.Error) }) {
Text("Show Error Alert")
}
Button(onClick = { alertManager.show("Success", AlertBannerType.Success) }) {
Text("Show Success Alert")
}
}
}
}
}Compose Alert Banner offers multiple configuration options:
Contributions, issues, and feature requests are welcome! Please:
git checkout -b feature/YourFeature).git commit -am 'Add new feature').git push origin feature/YourFeature).Be sure to follow the existing code style and include tests where applicable.
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
For questions or suggestions, open an issue or reach out directly: