Skip to content

Commit 08122ab

Browse files
Merge pull request #9 from formkit/feature/frontmatter
adds frontmatter to all .md docs content
2 parents 98018f8 + 1d64f96 commit 08122ab

38 files changed

+198
-0
lines changed

advanced/context.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: The Context Object
3+
description: FormKit provides a reactive context object to expose data to slots, rules, and the underlying schema that defines an input.
4+
---
5+
16
# Context object
27

38
FormKit inputs use a reactive object to expose data to slots, rules, and the underlying [schema](/advanced/schema) that defines the input. This is called the `context` object and is found in the each input's [core `node` object](/advanced/core-node) at `node.context`. The context object has the following properties:

advanced/core.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Core
3+
description: FormKit Core is a zero-dependency package that is responsible for nearly all of FormKit's low-level critical functions.
4+
---
5+
16
# Core
27

38
At the heart of the FormKit framework is `@formkit/core`. This zero-dependency package is responsible for nearly all of FormKit's low-level critical functions, such as:

advanced/custom-inputs.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Custom Inputs
3+
description: Create your own inputs that automatically inherit FormKit’s value-added features such as validation, error messages, data modeling, grouping, labels, help text and more.
4+
---
5+
16
# Custom inputs
27

38
<cta label="Building your first custom input?" type="ghost" href="/guides/create-a-custom-input" button="Read the guide"></cta>

advanced/schema.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: FormKit Schema
3+
description: FormKit's schema is a JSON-serializable data format for storing DOM structures and component implementations including FormKit forms.
4+
---
5+
16
# Schema
27

38
FormKit's schema is a JSON-serializable data format for storing DOM structures and component implementations including FormKit forms. Although created specifically for implementing forms, the format is capable of generating any HTML markup or using any third-party components. Schemas are rendered using FormKit's `<FormKitSchema>` component.

essentials/community.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: FormKit Community
3+
description: Get involved in the FormKit community — troubleshooting support, feature requests, project roadmap discussion, and more.
4+
---
5+
16
# Community
27

38
Community involvement and contributions are one of the most important aspects of the FormKit ecosystem. We invite you to actively participate — whether using FormKit's products, translating validation messages to your native tongue, being an active member of the Discord, or filing bug reports or making pull requests to the [FormKit codebase](https://github.com/formkit/formkit).

essentials/forms.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Forms
3+
description: Collect all of your FormKit data, submit to your server, and handle server-side error messages.
4+
---
5+
16
# Forms
27

38
While you’re free to use `FormKit` inputs by themselves, you’ll usually want to group them into a form. To do this, you simply wrap your inputs in a `<FormKit type="form">`.

essentials/generation.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Form Generation
3+
description: Harness all the power of FormKit in a serializable, JSON-compatible schema language.
4+
---
5+
16
# Form generation
27

38
FormKit ships with first-class support for generating forms using a JSON compatible schema. This makes it possible to store generated forms in databases, files, or heck a QR code if you really want to. To generate a form, just pass your schema to the `<FormKitSchema>` component using the `:schema` prop.

essentials/inputs.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: FormKit Inputs
3+
description: FormKit ships with turbocharged inputs for developing production-ready forms in your project.
4+
---
5+
16
# Inputs
27

38
FormKit’s inputs are similar to HTML inputs but turbocharged with much needed features like labels, help text, validation, and error messages (and much more). Similar to how HTML’s `<input>` tag uses various `type` attributes (i.e., `<input type="text">` vs `<input type="checkbox">`), FormKit uses the `type` prop for _all_ inputs. In fact, with FormKit, **there is only 1 component you have to learn**:

essentials/installation.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Getting Started with FormKit
3+
description: Get up and running with FormKit in your project.
4+
---
5+
16
# Installation
27

38
FormKit can be downloaded using a package manager like `npm` or `yarn` or it can be used directly via CDN.

essentials/internationalization.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Internationalization (i18n)
3+
description: Translate FormKit UI and validation messages into supported languages — or provide your own.
4+
---
5+
16
# Internationalization (i18n)
27

38
FormKit ships with internationalization support for all of its interfaces and validation messages. Currently, FormKit supports the following languages (in the `@formkit/i18n` package):

essentials/styling.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: FormKit Styling
3+
description: Add custom styling to your FormKit components - both globally and per-instance.
4+
---
5+
16
# Styling
27

38
FormKit ships robust and accessible markup — but with no assumptions about your

essentials/validation.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: FormKit Validation
3+
description: Provide instant feedback to users on the validity of their form data.
4+
---
5+
16
# Validation
27

38
FormKit makes front end validation simple by letting you declare your validation rules directly on your inputs. It’s easy to write custom rules too, but with 20+ production-ready rules to choose from, it's rare you'll need to.

essentials/what-is-formkit.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: What is Formkit?
3+
description: FormKit is a form authoring framework for Vue developers that makes building high quality production-ready forms 10x faster.
4+
---
5+
16
# What is FormKit?
27

38
FormKit is a form authoring framework for Vue developers that makes building high quality production-ready forms 10x faster. It is easy-to-learn and ships with production-ready scaffolding like inputs, validation rules, and error handling.
@@ -55,6 +60,7 @@ FormKit comes with great production-ready defaults, and for many users, the defa
5560

5661
While FormKit does a lot of things, it is not a UI framework or a _layout_ tool. Want inputs next to each other? Cool! Wrap some inputs in a `<div>` and sprinkle on some `flexbox`. While FormKit ships with [default theme](/essentials/styling#optional-genesis-theme), this package assumes you'll still be responsible for most of your form's style and layout. FormKit plays nicely with any UI framework or your custom styles.
5762

63+
5864
## Why not...?
5965

6066
### Vuetify

guides/create-a-custom-input.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Create a Custom Input
3+
description: Follow this guide to learn how to create, register, and use a custom FormKit input in your project.
4+
---
5+
16
# Create a custom input
27

38
In this guide, we’ll walk through the process of creating, registering, and using a custom input. Specifically, we’re going create a "one-time password" input ("OTP" for short). OTPs are commonly used for two-factor authentication when a user is required to type in a code sent via SMS or authenticator app. Let’s get started!

inputs/button.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Button
3+
description: A native HTML button element.
4+
---
5+
16
<InputPageHero
27
title="Button input"
38
icon="IconInputButton"

inputs/checkbox.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Checkbox
3+
description: A native HTML checkbox input with support for one or many nested options elements.
4+
---
5+
16
<InputPageHero
27
title="Checkbox input"
38
icon="IconInputCheckbox"

inputs/color.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Color
3+
description: A native HTML color picker.
4+
---
5+
16
<InputPageHero
27
title="Color input"
38
icon="IconInputColor"

inputs/date.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
title: Date
3+
description: A native HTML date picker.
4+
---
5+
6+
17
<InputPageHero
28
title="Date input"
39
icon="IconInputDate"

inputs/datetime-local.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
title: Color
3+
description: A native HTML datetime-local picker.
4+
---
5+
6+
17
<InputPageHero
28
title="Datetime-local input"
39
icon="IconInputDatetime"

inputs/email.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
title: Email
3+
description: A native HTML email input.
4+
---
5+
6+
17
<InputPageHero
28
title="Email input"
39
icon="IconInputEmail"

inputs/file.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
title: File
3+
description: A native HTML file input with support for multiple files, drag and drop, clearing the input, and repopulating from an array.
4+
---
5+
6+
17
<InputPageHero
28
title="File input"
39
icon="IconInputFile"

inputs/group.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Group
3+
description: An invisible FormKit input that allows you to logically structure your form data as an object.
4+
---
5+
16
<InputPageHero
27
title="Group input"
38
icon="IconInputGroup"

inputs/hidden.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
title: Hidden
3+
description: A native HTML hidden input.
4+
---
5+
6+
17
<InputPageHero
28
title="Hidden input"
39
icon="IconInputHidden"

inputs/list.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
title: List
3+
description: An invisible FormKit input that allows you to logically structure your form data as an array.
4+
---
5+
6+
17
<InputPageHero
28
title="List input"
39
icon="IconInputList"

inputs/month.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
title: Month
3+
description: A native HTML month picker.
4+
---
5+
6+
17
<InputPageHero
28
title="Month input"
39
icon="IconInputMonth"

inputs/number.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Number
3+
description: A native HTML number input
4+
---
5+
16
<InputPageHero
27
title="Number input"
38
icon="IconInputNumber"

inputs/password.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Password
3+
description: A native HTML password input.
4+
---
5+
16
<InputPageHero
27
title="Password input"
38
icon="IconInputPassword"

inputs/radio.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Radio
3+
description: A native HTML radio input with support for one or many nested options elements.
4+
---
5+
16
<InputPageHero
27
title="Radio input"
38
icon="IconInputRadio"

inputs/range.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Range
3+
description: A native HTML range input.
4+
---
5+
16
<InputPageHero
27
title="Range input"
38
icon="IconInputRange"

inputs/search.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Search
3+
description: A native HTML search input.
4+
---
5+
16
<InputPageHero
27
title="Search input"
38
icon="IconInputSearch"

inputs/select.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Select
3+
description: A native HTML select input. Supports both single-value and multi-value selections.
4+
---
5+
16
<InputPageHero
27
title="Select input"
38
icon="IconInputSelect"

inputs/submit.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Submit
3+
description: A native HTML button element used in place of a native HTML submit input.
4+
---
5+
16
<InputPageHero
27
title="Submit input"
38
icon="IconInputSubmit"

inputs/tel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Tel (Telephone)
3+
description: A native HTML tel input.
4+
---
5+
16
<InputPageHero
27
title="Tel input"
38
icon="IconInputPhone"

inputs/text.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Text
3+
description: A native HTML text input.
4+
---
5+
16
<InputPageHero
27
title="Text input"
38
icon="IconInputText"

inputs/textarea.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Textarea
3+
description: A native HTML textarea input.
4+
---
5+
16
<InputPageHero
27
title="Textarea input"
38
icon="IconInputTextArea"

inputs/time.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Time
3+
description: A native HTML time input.
4+
---
5+
16
<InputPageHero
27
title="Time input"
38
icon="IconInputTime"

inputs/url.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: URL
3+
description: A native HTML url input.
4+
---
5+
16
<InputPageHero
27
title="URL input"
38
icon="IconInputUrl"

inputs/week.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Week
3+
description: A native HTML week picker.
4+
---
5+
16
<InputPageHero
27
title="Week input"
38
icon="IconInputWeek"

0 commit comments

Comments
 (0)