bootstrap-alert-compose icon indicating copy to clipboard operation
bootstrap-alert-compose copied to clipboard

Bootstrap alert in #Compose.

Bootstrap Alert in Compose

Bootstrap style alerts in compose desktop

Demo

Prerequisites

Add jitpack to your repositories

Kotlin

maven { url = uri("https://jitpack.io") }

or Groovy

maven { url "https://jitpack.io" }

Installation

Kotlin

implementation("com.github.mddanishansari:bootstrap-alert-compose:<latest-version>")

or Groovy

implementation 'com.github.mddanishansari:bootstrap-alert-compose:<latest-version>'

Latest version is

Usage

var showAlert by remember { mutableStateOf(true) }

if (showAlert) {
    PrimaryAlert(message = "I'm a simple text message", onDismiss = {
        showAlert = false
    })
}

Checkout the sample code for all kinds of alerts