mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-15 04:51:06 +02:00
Migrate to Mantine v8 and Design Changes (#961)
* mantine v8 migration * various design changes and improvements
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user