Skip to content

Commit

Permalink
Update readme to explain how to use switches in BS 4.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
simmerz committed Jan 31, 2019
1 parent 914d071 commit cffee13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,10 @@ Check boxes and radio buttons are wrapped in a `div.form-check`. You can add cla
```
#### Switches

To render checkboxes as switches with Bootstrap 4.2+, add the proper wrapper class:
To render checkboxes as switches with Bootstrap 4.2+, use `custom: :switch`:

```erb
<%= f.check_box :remember_me, custom: true, wrapper_class: 'custom-switch' %>
<%= f.check_box :remember_me, custom: :switch %>
```

#### Collections
Expand Down

0 comments on commit cffee13

Please # to comment.