diff --git a/striker-ui/components/InnerPanel.tsx b/striker-ui/components/InnerPanel.tsx index 07dc0585..4351037c 100644 --- a/striker-ui/components/InnerPanel.tsx +++ b/striker-ui/components/InnerPanel.tsx @@ -16,6 +16,7 @@ const useStyles = makeStyles(() => ({ marginTop: '20px', marginBottom: '20px', paddingBottom: '10px', + position: 'relative', }, })); diff --git a/striker-ui/components/PanelHeader.tsx b/striker-ui/components/PanelHeader.tsx new file mode 100644 index 00000000..04dafde7 --- /dev/null +++ b/striker-ui/components/PanelHeader.tsx @@ -0,0 +1,39 @@ +import { ReactNode } from 'react'; +import { Box } from '@material-ui/core'; +import { makeStyles } from '@material-ui/core/styles'; +import { TEXT } from '../lib/consts/DEFAULT_THEME'; + +type Props = { + children: ReactNode; +}; + +const useStyles = makeStyles(() => ({ + innerHeader: { + position: 'relative', + padding: '0 10px', + '&::before': { + top: '-5px', + left: '-5px', + padding: '10px 0', + position: 'absolute', + content: '""', + borderColor: TEXT, + borderWidth: '1px', + borderRadius: '3px', + borderStyle: 'solid', + width: '100%', + }, + }, +})); + +const PanelHeader = ({ children }: Props): JSX.Element => { + const classes = useStyles(); + + return ( + + {children} + + ); +}; + +export default PanelHeader;