View Source Tremorx.Components.Badge (tremorx v0.1.1)
Renders a badge
Summary
Functions
Badges are subtle elements to highlight information which are often used in tables and lists as well as in combination with metrics
Renders a badge delta
Functions
Badges are subtle elements to highlight information which are often used in tables and lists as well as in combination with metrics
Attributes
class
(:string
) - Defaults tonil
.color
(:string
) - Defaults tonil
.size
(:string
) - Defaults to"sm"
.- Global attributes are accepted.
Slots
icon
inner_block
Renders a badge delta
Attributes
class
(:string
) - Defaults tonil
.size
(:string
) - Defaults to"sm"
.increase_positive
(:boolean
) - Defaults totrue
.delta_type
(:string
) - Defaults to"increase"
.- Global attributes are accepted.
Slots
inner_block