Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
indent fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Nov 30, 2022
1 parent 93eda14 commit f2fe5e8
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/test/kotlin/kweb/docs/components.kt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ enum class BulmaSize(override val cssClassName: String) : BulmaClass {
}

enum class BulmaStyle(override val cssClassName: String) : BulmaClass {
ROUNDED("is-rounded"), FOCUSED("is-focused")
ROUNDED("is-rounded"),
}

enum class BulmaState(override val cssClassName: String) : BulmaClass {
Expand Down Expand Up @@ -83,22 +83,22 @@ fun Component.bulmaInput(

fun bulmaComponentUsageExample() {
// ANCHOR: bulma_component_usage
Kweb(port = 12354) {
doc.head {
element(
"link",
attributes = mapOf(
"rel" to "stylesheet".json,
"href" to "https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css".json
)
Kweb(port = 12354) {
doc.head {
element(
"link",
attributes = mapOf(
"rel" to "stylesheet".json,
"href" to "https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css".json
)
}
)
}

doc.body {
val username = kvar("")
val color = username.map { if (it.length < 5) BulmaColor.WARNING else BulmaColor.SUCCESS }
bulmaInput(type = text, value = username, color)
}
doc.body {
val username = kvar("")
val color = username.map { if (it.length < 5) BulmaColor.WARNING else BulmaColor.SUCCESS }
bulmaInput(type = text, value = username, color)
}
}
// ANCHOR_END: bulma_component_usage
}

0 comments on commit f2fe5e8

Please sign in to comment.