Skip to content

Commit

Permalink
✨ Paper (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
InsidersByte authored Nov 6, 2017
1 parent bb51fc4 commit 59eb0d3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ let make = (_children) => {
- [ ] Menu
- [ ] MobileStepper
- [ ] MuiThemeProvider
- [ ] Paper
- [X] Paper
- [ ] Popover
- [ ] RadioGroup
- [ ] Radio
Expand Down
29 changes: 29 additions & 0 deletions src/MaterialUI.re
Original file line number Diff line number Diff line change
Expand Up @@ -1038,6 +1038,35 @@ module List = {
);
};

module Paper = {
[@bs.module "material-ui/Paper"] external toolbar : ReasonReact.reactClass = "default";
let make =
(
~classes: option(Js.t({..}))=?,
~className: option(string)=?,
~component: option(string)=?,
~elevation: option(int)=?,
~square: option(bool)=?,
~style: option(ReactDOMRe.style)=?,
children
) =>
ReasonReact.wrapJsForReason(
~reactClass=toolbar,
~props=
Js.Nullable.(
{
"classes": from_opt(classes),
"className": from_opt(className),
"component": from_opt(component),
"elevation": from_opt(elevation),
"square": unwrap_bool(square),
"style": from_opt(style)
}
),
children
);
};

module TableBody = {
[@bs.module "material-ui/Table"] external toolbar : ReasonReact.reactClass = "TableBody";
let make =
Expand Down

0 comments on commit 59eb0d3

Please sign in to comment.