CssName

annotation class CssName(val name: String)(source)

An annotation that can be applied to a CssStyle or CssStyleVariant property to override its default name.

In the following example, the generated CSS class name would have been "info-bubble" by default but will be "info" instead:

@CssName("info")
val InfoBubbleStyle = CssStyle { ... }

It is not expected many users will ever use this annotation, but it can be useful as a way to shorten long names or deal with name collisions with a different style generated in another package.

Properties

Link copied to clipboard