bh v0.0.15 Bh.Bh4.Label View Source

Twitter Bootstrap 4 label helpers for Phoenix.

Examples

Real live examples can be found on the site of the Project.

Link to this section Summary

Functions

Generates default label markup

Generates contextual label markup

Generates default pill label markup

Generates contextual pill label markup

Link to this section Functions

Generates default label markup.

Resulting HTML:

<span class="label label-default">Label</span>

Generates contextual label markup.

Supported contexts: :default, :primary, :success, :info, :warning, :danger.

Call bh_label "Label", context: :success generates:

<span class="label label-success">Label</span>

Generates default pill label markup.

Resulting HTML:

<span class="label label-pill label-default">Label</span>
Link to this function bh_label_pill(text, list) View Source

Generates contextual pill label markup.

Supported contexts: :default, :primary, :success, :info, :warning, :danger.

Call bh_label_pill "Label", context: :success generates:

<span class="label label-pill label-success">Label</span>