From f14fed40da41a11b8b5774a13b4371c69e983b37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Fri, 14 Mar 2014 18:50:00 -0300 Subject: [PATCH] Document the options to components --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 42fd1378..446c72c0 100644 --- a/README.md +++ b/README.md @@ -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