Skip to content

Commit

Permalink
add example for change theme
Browse files Browse the repository at this point in the history
  • Loading branch information
xinthink committed Dec 5, 2015
1 parent aff5e5c commit fb49aa1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,17 @@ The two `Text` tags here, similar to [State List][android-state-list] in *Androi
/>
```
You can customize the styles by changing the global theme, which affects all radio buttons across the whole app.
```js
setTheme({radioStyle: {
fillColor: `rgba(${MKColor.RGBTeal},.8)`,
borderOnColor: `rgba(${MKColor.RGBTeal},.6)`,
borderOffColor: `rgba(${MKColor.RGBTeal},.3)`,
rippleColor: `rgba(${MKColor.RGBTeal},.15)`,
}});
```
👉 [props reference][radio-props-doc] and [example code][toggles-sample]
[mdl-radio]: http://www.getmdl.io/components/index.html#toggles-section/radio
Expand Down

0 comments on commit fb49aa1

Please sign in to comment.