Skip to content

Commit 4ea039e

Browse files
author
Sasha Milenkovic
committed
docs: adds changelog for FormKit Pro v0.127.1 and unitless example
1 parent 4f66cfd commit 4ea039e

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

.examples/unit/unitless.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<template>
2+
<FormKit v-slot="{ value }" type="form" :actions="false">
3+
<FormKit type="unit" label="No units" name="value" />
4+
<pre wrap>{{ value && value.value }}</pre>
5+
</FormKit>
6+
</template>

changelog-pro/106.v0.127.1.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## 0.127.1
2+
3+
### September 11, 2024
4+
5+
### 💪 New Features
6+
7+
- Makes `unit` property optional in [`unit` input](/inputs/unit) to allow for
8+
unitless values.
9+
10+

inputs/unit.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,18 @@ file: "_content/_examples/unit/value-unit.vue"
116116
---
117117
::
118118

119+
### Unitless
120+
121+
The `unit` prop is optional, allowing for unitless values.
122+
123+
::Example
124+
---
125+
name: "Unit type examples"
126+
file: "_content/_examples/unit/unitless.vue"
127+
---
128+
::
129+
130+
119131
::Callout
120132
---
121133
type: "warning"
@@ -128,13 +140,13 @@ In order to convert one unit to another, they must be in the same taxonomy (so f
128140

129141
::ReferenceTable
130142
---
131-
input: "unit"
143+
input: "unit"
132144
data: [
133145
{
134146
prop: "unit",
135-
type: "string",
136-
default: "percent",
137-
description: "Set the specified unit to use for this input"
147+
type: "string | undefined",
148+
description: "Set the specified unit to use for this input. If undefined, will
149+
allow for unitless values."
138150
},
139151
{
140152
prop: "displayLocale",

0 commit comments

Comments
 (0)