diff --git a/components/app_bar/readme.md b/components/app_bar/readme.md index 6530eb98..8eae071d 100644 --- a/components/app_bar/readme.md +++ b/components/app_bar/readme.md @@ -2,13 +2,24 @@ The app bar is a special kind of toolbar that’s used for branding, navigation, search, and actions. Usually it contains controls on the right and left side and a title with the current section or app name. You should give the content with children elements. + ```jsx import AppBar from 'react-toolbox/lib/app_bar'; +import Navigation from 'react-toolbox/lib/navigation'; +import Link from 'react-toolbox/lib/Link'; + +const GithubIcon = () => ( + + + +); const AppBarTest = () => ( - - React Toolbox Docs - + }> + + + + ); ``` diff --git a/components/button/IconButton.js b/components/button/IconButton.js index 3b4b3438..e2d8b495 100644 --- a/components/button/IconButton.js +++ b/components/button/IconButton.js @@ -65,7 +65,7 @@ const factory = (ripple, FontIcon) => { }; return React.createElement(element, props, - icon ? : null, + icon ? typeof icon === 'string' ? : icon : null, children ); } diff --git a/components/button/readme.md b/components/button/readme.md index ec079dab..41aa3547 100644 --- a/components/button/readme.md +++ b/components/button/readme.md @@ -23,6 +23,7 @@ const TestButtons = () => (