aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/panel.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/instant/src/components/panel.tsx')
-rw-r--r--packages/instant/src/components/panel.tsx27
1 files changed, 27 insertions, 0 deletions
diff --git a/packages/instant/src/components/panel.tsx b/packages/instant/src/components/panel.tsx
new file mode 100644
index 000000000..bb16ed9b1
--- /dev/null
+++ b/packages/instant/src/components/panel.tsx
@@ -0,0 +1,27 @@
+import * as React from 'react';
+
+import { ColorOption } from '../style/theme';
+import { zIndex } from '../style/z_index';
+
+import { Button, Container, Text } from './ui';
+
+export interface PanelProps {
+ onClose?: () => void;
+}
+
+export const Panel: React.StatelessComponent<PanelProps> = ({ children, onClose }) => (
+ <Container
+ backgroundColor={ColorOption.white}
+ position="absolute"
+ top="0px"
+ left="0px"
+ width="100%"
+ height="100%"
+ zIndex={zIndex.panel}
+ >
+ <Button onClick={onClose}>
+ <Text fontColor={ColorOption.white}>Close </Text>
+ </Button>
+ {children}
+ </Container>
+);