<commit_before># d-md-components/Textfield
A textfield component with a floating label.

Features
--------
- A styled textfield using mdl.io.
- Use with derby-validator to mark fields invalid and see error messages below field.

Usage
-----
### Including
```javascript
require('d-md-components/textfield');
```

#### Template
```html
  <!-- All attributes exept label are optional. 
      'fieldName' will be set to the input>name attribute.
      'validator' will only work if derby-validator library is used. -->
  <view is="textfield" fieldName="email" label="E-mail" validator="{{validator}}" type="email"></view>
```

See readme of derby-validator for usage of validation.<commit_msg>Update textfield readme<commit_after># d-md-components/Textfield
A textfield component with a floating label.

Features
--------
- A styled textfield using mdl.io.
- Use with derby-validator to mark fields invalid and see error messages below field.

Usage
-----
### Including
```javascript
require('d-md-components/textfield');
```

#### Template
```html
  <!-- All attributes exept label are optional. 
      'fieldName' will be set to the inputs name attribute. This is useful for browser autofill reasons.
      If type="textarea", a self-expanding textarea will be used instead.
      'validator' will only work if derby-validator library is used. -->
  <view is="textfield" 
        fieldName="email" 
        label="E-mail" 
        validator="{{validator}}" 
        type="email" 
        disabled="{{disabled}}" />
```

See readme of [Derby-validator](https://github.com/BBWeb/derby-validator) for usage of validation.
{'fraction_non_alphanumeric': 0.13366336633663367, 'fraction_numerical': 0.0, 'mean_word_length': 3.4916666666666667, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 9, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3582630', 'n_tokens_mistral': 460, 'n_tokens_neox': 452, 'n_words': 161}