aboutsummaryrefslogtreecommitdiffstats
path: root/packages/forms/src/wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'packages/forms/src/wrapper')
-rw-r--r--packages/forms/src/wrapper/index.tsx26
-rw-r--r--packages/forms/src/wrapper/styles.ts5
2 files changed, 31 insertions, 0 deletions
diff --git a/packages/forms/src/wrapper/index.tsx b/packages/forms/src/wrapper/index.tsx
new file mode 100644
index 000000000..c2444b0ea
--- /dev/null
+++ b/packages/forms/src/wrapper/index.tsx
@@ -0,0 +1,26 @@
1import React, { Component } from 'react';
2import injectStyle from 'react-jss';
3import { IWithStyle } from '../typings/generic';
4
5import styles from './styles';
6
7interface IProps extends IWithStyle {
8 children: React.ReactNode;
9}
10
11class Wrapper extends Component<IProps> {
12 render() {
13 const {
14 children,
15 classes,
16 } = this.props;
17
18 return (
19 <div className={classes.container}>
20 {children}
21 </div>
22 );
23 }
24}
25
26export default injectStyle(styles)(Wrapper);
diff --git a/packages/forms/src/wrapper/styles.ts b/packages/forms/src/wrapper/styles.ts
new file mode 100644
index 000000000..72306b252
--- /dev/null
+++ b/packages/forms/src/wrapper/styles.ts
@@ -0,0 +1,5 @@
1export default {
2 container: {
3 marginBottom: 20,
4 },
5};