mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 20:40:15 +02:00
c1330d92b2
* mantine v8 migration * various design changes and improvements
28 lines
665 B
TypeScript
28 lines
665 B
TypeScript
import type { PaperProps as MantinePaperProps } from '@mantine/core';
|
|
|
|
import { Paper as MantinePaper } from '@mantine/core';
|
|
import { ReactNode } from 'react';
|
|
|
|
import styles from './paper.module.css';
|
|
|
|
export interface PaperProps extends MantinePaperProps {
|
|
children?: ReactNode;
|
|
}
|
|
|
|
export const Paper = ({ children, classNames, style, ...props }: PaperProps) => {
|
|
return (
|
|
<MantinePaper
|
|
classNames={{
|
|
root: styles.root,
|
|
...classNames,
|
|
}}
|
|
style={{
|
|
...style,
|
|
}}
|
|
{...props}
|
|
>
|
|
{children}
|
|
</MantinePaper>
|
|
);
|
|
};
|