Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

Commit

Permalink
Add Missing Button style
Browse files Browse the repository at this point in the history
  • Loading branch information
fuma-nama committed Aug 19, 2022
1 parent 750d8b5 commit 627abb1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/kotlin/bjda/ui/component/action/Button.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ class Button(props: Apply<Button>) : Action {
return this
}

fun success(): Button {
style = ButtonStyle.SUCCESS
return this
}

fun danger(): Button {
style = ButtonStyle.DANGER
return this
Expand Down

0 comments on commit 627abb1

Please sign in to comment.