PetalComponents.Link
(petal_components v2.9.2)
View Source
Summary
Attributes
class
(:any
) - CSS class for link (either a string or list). Defaults to nil
.link_type
(:string
) - Defaults to "a"
.label
(:string
) - label your link. Defaults to nil
.to
(:string
) - link path. Defaults to nil
.disabled
(:boolean
) - disables the link. This will turn an <a> into a <button> (<a> tags can't be disabled). Defaults to false
.- Global attributes are accepted. Supports all globals plus:
["method", "download"]
.
Slots
Functions
Attributes
class
(:any
) - CSS class for link (either a string or list). Defaults to nil
.link_type
(:string
) - Defaults to "a"
.label
(:string
) - label your link. Defaults to nil
.to
(:string
) - link path. Defaults to nil
.disabled
(:boolean
) - disables the link. This will turn an <a> into a <button> (<a> tags can't be disabled). Defaults to false
.- Global attributes are accepted. Supports all globals plus:
["method", "download"]
.
Slots