1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

better editor layout

This commit is contained in:
muerwre 2019-08-01 04:36:09 +07:00
parent a2bb40bb14
commit fcfc16c157
11 changed files with 242 additions and 67 deletions

View file

@ -4,15 +4,17 @@ import classNames = require("classnames");
type IProps = HTMLAttributes<HTMLDivElement> & {
seamless?: boolean;
stretchy?: boolean
}
const Panel: FC<IProps> = ({
className,
children,
seamless,
stretchy,
...props
}) => (
<div className={classNames(styles.panel, className, { seamless })} {...props}>
<div className={classNames(styles.panel, className, { seamless, stretchy })} {...props}>
{children}
</div>
);