All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.karasiq.bootstrap4.alert.AlertStyles.scala Maven / Gradle / Ivy

package com.karasiq.bootstrap4.alert

import com.karasiq.bootstrap.context.RenderingContext

trait AlertStyles { self: RenderingContext ⇒
  import scalaTags.all._

  final class AlertStyle private[alert](val styleName: String) extends ModifierFactory {
    val createModifier = s"alert-$styleName".addClass
  }

  object AlertStyle {
    lazy val primary = new AlertStyle("primary")
    lazy val secondary = new AlertStyle("secondary")
    lazy val success = new AlertStyle("success")
    lazy val info = new AlertStyle("info")
    lazy val warning = new AlertStyle("warning")
    lazy val danger = new AlertStyle("danger")
    lazy val light = new AlertStyle("light")
    lazy val dark = new AlertStyle("dark")
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy