mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-09 22:02:19 +02:00
Add dialog component
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import type { DialogProps as MantineDialogProps } from '@mantine/core';
|
||||
import { Dialog as MantineDialog } from '@mantine/core';
|
||||
import styled from 'styled-components';
|
||||
|
||||
const StyledDialog = styled(MantineDialog)`
|
||||
&.mantine-Dialog-root {
|
||||
background-color: var(--modal-bg);
|
||||
box-shadow: 2px 2px 10px 2px rgba(0, 0, 0, 40%);
|
||||
}
|
||||
`;
|
||||
|
||||
export const Dialog = ({ ...props }: MantineDialogProps) => {
|
||||
return <StyledDialog {...props} />;
|
||||
};
|
||||
Reference in New Issue
Block a user