From 854bc9f8ca84ae4c5a1f7716b933c5c55117ffca Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 23 May 2022 16:51:09 +0600 Subject: [PATCH] Add support of size and group in UIKitButton --- CHANGELOG.md | 2 ++ .../kotlin/dev/inmo/jsuikit/modifiers/UIKitButton.kt | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c7e933c..47b5424 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## 0.1.6 +* Add support of UIKitButton size and group + ## 0.1.5 * Fix access to `UIKitSticky` diff --git a/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitButton.kt b/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitButton.kt index 92a4ef4..80f6eb3 100644 --- a/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitButton.kt +++ b/src/jsMain/kotlin/dev/inmo/jsuikit/modifiers/UIKitButton.kt @@ -12,5 +12,12 @@ sealed class UIKitButton(suffix: String?) : UIKitModifier { object Link : Type("link") } + sealed class Size(suffix: String) : UIKitButton(suffix) { + object Small : Size("small") + object Large : Size("large") + } + + object Group : UIKitButton("group") + companion object : UIKitButton(null) }