mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 21:10:12 +02:00
Add paper component
This commit is contained in:
@@ -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>;
|
||||
};
|
||||
Reference in New Issue
Block a user