Add paper component

This commit is contained in:
jeffvli
2022-11-03 03:17:27 -07:00
parent aeefbf8f7f
commit e9142ffaa5
2 changed files with 19 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import styled from '@emotion/styled';
import {
Paper as MantinePaper,
PaperProps as MantinePaperProps,
} from '@mantine/core';
export interface PaperProps extends MantinePaperProps {
children: React.ReactNode;
}
const StyledPaper = styled(MantinePaper)`
background: var(--paper-bg);
`;
export const Paper = ({ children, ...props }: PaperProps) => {
return <StyledPaper {...props}>{children}</StyledPaper>;
};