Document the options to components
This commit is contained in:
parent
2fa4b7a797
commit
f14fed40da
10
README.md
10
README.md
|
@ -811,6 +811,16 @@ end
|
||||||
|
|
||||||
this will wrap the hint and error components within a `div` tag using the class `'separator'`.
|
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:
|
If you want to customize the custom _Form components_ on demand you can give it a name like this:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
|
|
Loading…
Reference in New Issue