Link(ui_link)Ui Bibz Logo

UiBibz::Ui::Core::Navigations::Link

A simple link component.

Usage

This component is an extension of component element. A Ui Bibz component consists of 3 arguments:
  • content[value/block]
  • html_options[hash]<default: {}>
  • options[hash]<default: {}>

 # by variable 
 link content, options, html_options 

 # or by block 
 link options, html_options do 
   content 
 end

Options

The specific options for this component are:
  • action[string](use component stimulus-options method)
  • cache[string](use to cache your component)
  • controller[string](use component stimulus-options method)
  • glyph[string/hash](use component glyph method)
  • popover[string/hash](use component popover method)
  • state[symbol](:disabled, :active)(use component state method)
  • status[symbol](:primary, :secondary, :success, :danger, :warning, :info, :light, :dark)(use component status method)
  • target[string](use component stimulus-options method)
  • tooltip[string/hash](use component tooltip method)
  • turbo[string](use component turbo method)
  • url[string]

Examples

Some examples explain how to use the options present in the component.

Link

ui_link 'My link', url: components_navigations_link_path
<a href="/components/navigations/link">My link</a>