x
1
2
3
<span class="inline-flex items-center font-medium transition-colors duration-200 bg-primary-600 text-grayscale-50 px-2.5 py-1 text-sm gap-1.5 rounded-full"> Badge</span>1
2
3
4
5
6
7
8
9
10
11
12
13
14
pill_bool = ActiveModel::Type::Boolean.new.cast(pill)dot_bool = ActiveModel::Type::Boolean.new.cast(dot)counter_val = counter.present? ? counter.to_i : nilrender BetterUi::BadgeComponent.new( variant: variant, style: style, size: size, pill: pill_bool, dot: dot_bool, counter: counter_val) do "Badge"endNo notes provided.
| Param | Description | Input |
|---|---|---|
|
— |
|
|
|
— |
|
|
|
— |
|
|
|
— |
|
|
|
— |
|
|
|
— |
|