kjsuikit/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitNavbar.kt

18 lines
515 B
Kotlin
Raw Normal View History

2022-01-12 13:58:52 +00:00
package dev.inmo.jsuikit.modifiers
2021-12-22 08:38:12 +00:00
sealed class UIKitNavbar(suffix: String) : UIKitModifier {
override val classes: Array<String> = arrayOf("uk-navbar-$suffix")
object Transparent : UIKitNavbar("transparent")
sealed class Dropdown(suffix: String?) : UIKitNavbar("dropdown${suffix ?.let { "-$it" } ?: ""}") {
object Nav : Dropdown("nav")
companion object : Dropdown(null)
}
object Item : UIKitNavbar("item")
companion object {
val Logo = UIKitUtility.Logo
}
}