Document the options to components

This commit is contained in:
Rafael Mendonça França 2014-03-14 18:50:00 -03:00
parent 2fa4b7a797
commit f14fed40da
1 changed files with 10 additions and 0 deletions

View File

@ -811,6 +811,16 @@ end
this will wrap the hint and error components within a `div` tag using the class `'separator'`.
You can customize _Form components_ passing options to them:
```ruby
config.wrappers do |b|
b.use :label_input, class: 'label-input-class'
end
```
This you set the input and label class to `'label-input-class'`.
If you want to customize the custom _Form components_ on demand you can give it a name like this:
```ruby