paper

fun RenderContext.paper(    styling: BasicParams.() -> Unit = {},     baseClass: StyleClass = StyleClass.None,     id: String? = null,     prefix: String = "paper",     build: PaperComponent.() -> Unit)

This factory function creates a PaperComponent.

Usage example:

paper {
size { normal }
type { normal }
content {
span { +"This is paper." }
}
}

Have a look at PaperComponent for the full explanation.

Parameters

styling

a lambda expression for declaring the styling as fritz2's styling DSL

baseClass

optional CSS class that should be applied to the element

id

the ID of the element

prefix

the prefix for the generated CSS class resulting in the form `$prefix-$hash`

build

a lambda expression for setting up the component itself.