# Controls
Frappe.js comes in with built-in controls for various types of inputs
## Creating
A new control can be created with `control.makeControl` method.
```js
const controls = require('./controls');
let control = controls.makeControl({
fieldname: 'test',
fieldtype: 'Data',
label: 'Test Control'
}, body);
```
## Structure
The control has the following structure of HTML Elements
- `formGroup`
- `label`
- `input`
- `description`
## Types
Type of control is defined by the `fieldtype` property.
### Data
Short text input (``)
## Text
Long text input (`