View Source Tremorx.Components.Button (tremorx v0.1.0)
Button
Summary
Functions
Renders a button
Attributes
icon_position
(:string
) - Defaults to"left"
.size
(:string
) - Defaults to"sm"
.color
(:string
) - Defaults tonil
.class
(:string
) - Defaults tonil
.variant
(:string
) - Defaults to"primary"
.type
(:string
) - Defaults to"button"
.disabled
(:boolean
) - Defaults tofalse
.loading
(:boolean
) - Defaults tofalse
.loading_text
(:string
) - Defaults tonil
.tooltip
(:string
) - Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
icon
Renders a button icon or spinner
Attributes
icon_position
(:string
) - Defaults to"left"
.icon_size
(:string
) - Defaults to"sm"
.class
(:string
) - Defaults tonil
.need_icon_margin
(:boolean
) - Defaults tonil
.loading
(:boolean
) - Defaults tofalse
.state
(:string
) - Defaults to"default"
.
Slots
inner_block