PrenixComponents.Button (prenix_components v0.1.4)
Summary
Functions
Attributes
type
(:string
) - Defaults tonil
.color
(:string
) - Defaults to"default"
.variant
(:string
) - Defaults to"solid"
.size
(:string
) - Defaults to"md"
.icon
(:boolean
) - Defaults tofalse
.radius
(:string
) - Defaults to"lg"
.loading
(:boolean
) - Defaults tofalse
.disabled
(:boolean
) - Defaults tofalse
.class
(:string
) - Defaults tonil
.content_class
(:string
) - Defaults tonil
.spinner_wrapper_class
(:string
) - Defaults tonil
.spinner_class
(:string
) - Defaults tonil
.link_type
(:string
) - Defaults tonil
.- Global attributes are accepted. Supports all globals plus:
["href", "method", "download", "hreflang", "referrerpolicy", "rel", "target"]
.
Slots
inner_block
Functions
Link to this function
button(assigns)
Attributes
type
(:string
) - Defaults tonil
.color
(:string
) - Defaults to"default"
.variant
(:string
) - Defaults to"solid"
.size
(:string
) - Defaults to"md"
.icon
(:boolean
) - Defaults tofalse
.radius
(:string
) - Defaults to"lg"
.loading
(:boolean
) - Defaults tofalse
.disabled
(:boolean
) - Defaults tofalse
.class
(:string
) - Defaults tonil
.content_class
(:string
) - Defaults tonil
.spinner_wrapper_class
(:string
) - Defaults tonil
.spinner_class
(:string
) - Defaults tonil
.link_type
(:string
) - Defaults tonil
.- Global attributes are accepted. Supports all globals plus:
["href", "method", "download", "hreflang", "referrerpolicy", "rel", "target"]
.
Slots
inner_block