An open API service indexing awesome lists of open source software.

https://github.com/formio/uswds

JavaScript Powered Forms for the United States Web Design System
https://github.com/formio/uswds

Last synced: about 1 year ago
JSON representation

JavaScript Powered Forms for the United States Web Design System

Awesome Lists containing this project

README

          

# Form.io United States Web Design System Templates

This repository will change the rendering of forms in formio.js so that it uses html and classes compatible with the [United States Web Design System](https://designsystem.digital.gov/) framework.

## Usage

```javascript
import uswds from '@formio/uswds';
import { Formio } from '@formio/js';
Formio.use(uswds);
```

Or if you would like to embed directly within your website, you can use the following.

```html













Formio.use(uswds);
Formio.createForm(document.getElementById('formio'), 'https://examples.form.io/example');

```

You can try out this by going to the following JSFiddle - https://jsfiddle.net/travistidwell/yrwp9m24/1/

## Form Builder
In addition to being a Form Renderer, you can also use this library to embed the Form.io Form Builder within your own application using the following.

```html













Formio.use(uswds);
Formio.builder(document.getElementById('builder'));

```

## Example Application
For an example of how this platform works, please see the following application.

[https://formio.github.io/uswds](https://formio.github.io/uswds)