Link(ui_link)

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]
  • options[hash]<default: {}>
  • html_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:

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>

Contents