Previews

No matching results.

x
1
<i class="fa-regular fa-user" aria-hidden="true"></i>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
spin_bool = ActiveModel::Type::Boolean.new.cast(spin)
pulse_bool = ActiveModel::Type::Boolean.new.cast(pulse)
fixed_width_bool = ActiveModel::Type::Boolean.new.cast(fixed_width)
variant_val = variant.present? && variant != "~" ? variant.to_sym : nil
flip_val = flip.present? && flip != "~" ? flip.to_sym : nil
rotate_val = rotate.present? && rotate != "~" ? rotate.to_i : nil
size_val = size.to_s == "2xl" ? :"2xl" : size.to_sym
render BetterUi::FaIconComponent.new(
name: name,
style: style,
variant: variant_val,
size: size_val,
spin: spin_bool,
pulse: pulse_bool,
flip: flip_val,
rotate: rotate_val,
fixed_width: fixed_width_bool
)
Param Description Input