Skip to content

Commit 6267439

Browse files
author
Sasha Milenkovic
committed
docs: adds labels to unit examples
1 parent ee6a4df commit 6267439

File tree

2 files changed

+51
-8
lines changed

2 files changed

+51
-8
lines changed

.examples/unit/unit-display.vue

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,27 @@ const initialValues = {
1010
<template>
1111
<FormKit type="form" :actions="false" :value="initialValues">
1212
<!-- %partial%::html:: -->
13-
<FormKit type="unit" unit="kilogram" name="narrow" unit-display="narrow" />
14-
<FormKit type="unit" unit="kilogram" name="short" unit-display="short" />
15-
<FormKit type="unit" unit="kilogram" name="long" unit-display="long" />
13+
<FormKit
14+
type="unit"
15+
unit="kilogram"
16+
name="narrow"
17+
unit-display="narrow"
18+
label="Narrow"
19+
/>
20+
<FormKit
21+
type="unit"
22+
unit="kilogram"
23+
name="short"
24+
unit-display="short"
25+
label="Short"
26+
/>
27+
<FormKit
28+
type="unit"
29+
unit="kilogram"
30+
name="long"
31+
unit-display="long"
32+
label="Long"
33+
/>
1634
<!-- %partial%::html:: -->
1735
</FormKit>
1836
</template>

.examples/unit/unit.vue

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,36 @@ const initialValues = {
1616
:value="initialValues"
1717
>
1818
<!-- %partial%::html:: -->
19-
<FormKit type="unit" unit="meter" name="distance" />
20-
<FormKit type="unit" unit="celsius" name="temperature" />
21-
<FormKit type="unit" unit="day" name="time" />
22-
<FormKit type="unit" unit="fluid-ounce" name="volume" />
23-
<FormKit type="unit" unit="megabyte" name="digital-unit" />
19+
<FormKit
20+
type="unit"
21+
unit="kilometer"
22+
name="distance"
23+
label="Distance in meters"
24+
/>
25+
<FormKit
26+
type="unit"
27+
unit="celsius"
28+
name="temperature"
29+
label="Temperature in Celsius"
30+
/>
31+
<FormKit
32+
type="unit"
33+
unit="nanosecond"
34+
name="time"
35+
label="Time in nanoseconds"
36+
/>
37+
<FormKit
38+
type="unit"
39+
unit="fluid-ounce"
40+
name="volume"
41+
label="Volume in fluid ounces"
42+
/>
43+
<FormKit
44+
type="unit"
45+
unit="megabyte"
46+
name="digital-unit"
47+
label="Digital unit in megabytes"
48+
/>
2449
<pre wrap>{{ value }}</pre>
2550
<!-- %partial%::html:: -->
2651
</FormKit>

0 commit comments

Comments
 (0)