Skip to content

Commit

Permalink
Merge pull request #10 from akashahmad/develop
Browse files Browse the repository at this point in the history
Style prop in Modal component
  • Loading branch information
akashahmad authored Dec 8, 2023
2 parents ee0f3ae + 9981b82 commit 973d7ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export function Modal({
position = "top",
className = "",
style = {},
overlyStyle = {},
children,
onClose,
showCloseIcon = true,
Expand Down Expand Up @@ -46,6 +47,7 @@ export function Modal({

{showOverlay && open && (
<div
style={{ ...overlyStyle }}
onClick={onClose}
className="bg-dark absolute left-0 right-0 bottom-0 top-0 w-full h-full opacity-40 z-40"
/>
Expand All @@ -62,6 +64,7 @@ interface ModalProps {
position?: "top" | "center" | "bottom";
children: React.ReactNode;
style?: React.CSSProperties;
overlyStyle?: React.CSSProperties;
className?: string;
showOverlay?: boolean;
}
Expand Down

0 comments on commit 973d7ee

Please sign in to comment.