Module: BetterUi::General::Components::Link::LinkHelper
- Included in:
- BetterUi::General::Components::Link
- Defined in:
- app/helpers/better_ui/general/components/link/link_helper.rb
Instance Method Summary collapse
-
#bui_link(label, href: nil, theme: :white, orientation: :horizontal, style: :default, size: :medium, icon: nil, active: false, disabled: false, data: {}, method: nil, target: nil, **html_options, &block) ⇒ String
Genera un link usando BetterUi::General::Link::Component.
Instance Method Details
#bui_link(label, href: nil, theme: :white, orientation: :horizontal, style: :default, size: :medium, icon: nil, active: false, disabled: false, data: {}, method: nil, target: nil, **html_options, &block) ⇒ String
Genera un link usando BetterUi::General::Link::Component
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'app/helpers/better_ui/general/components/link/link_helper.rb', line 53 def bui_link( label, href: nil, theme: :white, orientation: :horizontal, style: :default, size: :medium, icon: nil, active: false, disabled: false, data: {}, method: nil, target: nil, **, &block ) render BetterUi::General::Link::Component.new( label: label, href: href, theme: theme, orientation: orientation, style: style, size: size, icon: icon, active: active, disabled: disabled, data: data, method: method, target: target, ** ), &block end |