This kit can be very versatile when used to display text data.
Variant default includes a label and text. However, variant details can be used if multiple elements are necessary in order to make it more descriptive. Variant details may include icon, light text, title and date, as well as the option to make it active (with link color) for clickability purposes.
Use this kit to display a label and value text for almost every data entry.
<%= pb_rails("label_value", props: { label: "Role", value: "Administrator, Moderator" }) %> <br> <%= pb_rails("label_value", props: { label: "Email", value: "anna.black@powerhrg.com" }) %> <br> <%= pb_rails("label_value", props: { label: "Bio", value: "Proin pulvinar feugiat massa in luctus. Donec urna nulla, elementum sit amet tincidunt nec, mattis nec urna. Cras viverra lorem odio, id pretium dui interdum ut. Nullam dignissim nisl vitae orci vehicula condimentum." }) %>
Variant details can pass icon, description, title, date, and active props.
<%= pb_rails("label_value", props: { variant: "details", label: "Installer", icon: "truck", title: "JD Installations LLC", }) %> <br> <%= pb_rails("label_value", props: { variant: "details", label: "Project", icon: "home", description: "33-12345", title: "Jefferson-Smith", }) %> <br> <%= pb_rails("label_value", props: { variant: "details", label: "Project", icon: "home", description: "33-12345", title: "Jefferson-Smith", date: Date.new(2019, 11, 18) }) %> <br> <%= pb_rails("label_value", props: { variant: "details", active: true, label: "Project", icon: "home", description: "33-12345", title: "Jefferson-Smith", date: Date.new(2019, 11, 18) }) %>
<%= pb_rails("title", props: { text: "Patient Profile", tag: "h4", size: 4, margin_bottom: "sm" }) %> <%= pb_rails("flex") do %> <%= pb_rails("flex", props: {orientation: "column", margin_right: "lg" }) do %> <%= pb_rails("label_value", props: { variant: "details", label: "Age", icon: "user", title: "24 yrs old", padding_bottom: "sm" }) %> <%= pb_rails("label_value", props: { variant: "details", label: "Weight", icon: "weight", title: "91 kg", }) %> <% end %> <%= pb_rails("flex", props: {orientation: "column"}) do %> <%= pb_rails("label_value", props: { variant: "details", label: "Blood", icon: "tint", title: "A +", padding_bottom: "sm" }) %> <%= pb_rails("label_value", props: { variant: "details", label: "Height", icon: "arrows-v", title: "187 cm", }) %> <% end %> <% end %> <br><br><br> <%= pb_rails("title", props: { text: "Workout Schedule", tag: "h4", size: 4, margin_bottom: "sm" }) %> <%= pb_rails("label_value", props: { variant: "details", label: "Chest", icon: "dumbbell", description: "6 sets • 8 reps • 40-100 kg", title: "Bench Press", padding_bottom: "sm", active: true }) %> <%= pb_rails("label_value", props: { variant: "details", label: "Biceps", icon: "dumbbell", description: "5 sets • 12 reps • 20-40 kg", title: "Barbell Curl", padding_bottom: "sm", active: true }) %> <%= pb_rails("label_value", props: { variant: "details", label: "Back", icon: "dumbbell", description: "8 sets • 8 reps • 40-120 kg", title: "Back Squat", padding_bottom: "sm", active: true }) %>
Try not to use this kit without padding as it will make text illegible if placed right next to the same kit or other kits.
| Props | Type | Values |
|---|---|---|
align_content |
enum | responsive
|
start
end
center
spaceBetween
spaceAround
spaceEvenly
|
align_items |
enum | responsive
|
start
end
center
|
border_radius |
enum
|
none
xs
sm
md
lg
xl
rounded
|
cursor |
enum
|
auto
default
none
contextMenu
help
pointer
progress
wait
cell
|
dark |
boolean
|
true
false
|
flex |
enum | responsive
|
auto
initial
0
1
2
3
4
5
6
7
8
9
10
11
12
none
|
flex_direction |
enum | responsive
|
row
column
rowReverse
columnReverse
|
flex_wrap |
enum | responsive
|
wrap
nowrap
wrapReverse
|
justify_content |
enum | responsive
|
start
end
center
spaceBetween
spaceAround
spaceEvenly
|
line_height |
enum
|
loosest
looser
loose
normal
tight
tighter
tightest
|
margin_right |
array
|
none
xxs
xs
sm
md
lg
xl
|
margin_left |
array
|
none
xxs
xs
sm
md
lg
xl
|
margin_top |
array
|
none
xxs
xs
sm
md
lg
xl
|
margin_bottom |
array
|
none
xxs
xs
sm
md
lg
xl
|
margin_x |
array
|
none
xxs
xs
sm
md
lg
xl
|
margin_y |
array
|
none
xxs
xs
sm
md
lg
xl
|
margin |
array
|
none
xxs
xs
sm
md
lg
xl
|
width |
string
|
|
min_width |
string
|
|
max_width |
string
|
|
gap |
string | responsive
|
|
column_gap |
string | responsive
|
|
row_gap |
string | responsive
|
|
number_spacing |
enum
|
tabular
|
order |
enum | responsive
|
none
first
1
2
3
4
5
6
7
8
9
10
11
12
|
overflow_x |
enum
|
scroll
visible
hidden
auto
|
overflow_y |
enum
|
scroll
visible
hidden
auto
|
overflow |
enum
|
scroll
visible
hidden
auto
|
padding_right |
array
|
none
xxs
xs
sm
md
lg
xl
|
padding_left |
array
|
none
xxs
xs
sm
md
lg
xl
|
padding_top |
array
|
none
xxs
xs
sm
md
lg
xl
|
padding_bottom |
array
|
none
xxs
xs
sm
md
lg
xl
|
padding_x |
array
|
none
xxs
xs
sm
md
lg
xl
|
padding_y |
array
|
none
xxs
xs
sm
md
lg
xl
|
padding |
array
|
none
xxs
xs
sm
md
lg
xl
|
position |
enum
|
relative
absolute
fixed
sticky
static
|
shadow |
enum
|
none
deep
deeper
deepest
|
text_align |
enum | responsive
|
start
end
left
right
center
justify
justifyAll
matchParent
|
truncate |
enum
|
none
1
2
3
4
5
|
vertical_align |
enum | responsive
|
baseline
super
top
middle
bottom
sub
text-top
text-bottom
|
z_index |
enum | responsive
|
1
2
3
4
5
6
7
8
9
10
max
|
top |
enum | object
|
xxs
xs
sm
md
lg
xl
xxl
|
inset |
boolean
|
true
false
|
right |
enum | object
|
xxs
xs
sm
md
lg
xl
xxl
|
bottom |
enum | object
|
xxs
xs
sm
md
lg
xl
xxl
|
left |
enum | object
|
xxs
xs
sm
md
lg
xl
xxl
|
height |
string
|
|
max_height |
string
|
|
min_height |
string
|
|
hover |
object
|
|
group_hover |
boolean
|
true
false
|
| Props | Type | Values | Default |
|---|---|---|---|
active |
boolean
|
true
false
|
false
|
date |
date
|
||
label |
string
|
||
value |
string
|
||
variant |
enum
|
default
details
|
default
|
icon |
string
|
||
description |
string
|
||
title |
string
|