Skip to content

Overlay

A full-screen overlay component that can be used to cover the whole page. Used in the Modal component.

See all the examples and details in the Storybook.

Usage

tsx
import { Overlay } from "@samgl/graffiti-ui";

const MyOverlay = () => {
  return <Overlay $color="light" />;
};

Props

PropTypeDefaultOptionalDescription
$colorstringlightThe color of the overlay.
classNamestringThe class name of the component, generally used when extending the component with a styled component.