GitHub

Masking

PreviousNext

Full-screen blocking overlay. Raw Arco passthrough — use for confirms and inline auth prompts.

Masking is the kit's re-export of @arco-design/mobile-react's Masking — a full-screen blocking overlay that prevents underlying content from receiving taps until dismissed. The kit's Drawer and PopupSwiper use it internally; expose it directly when you need a custom layout (e.g. an inline auth handshake or a confirm dialog) that doesn't fit either surface.

When to use vs Drawer / PopupSwiper

ComponentUse when
DrawerSheet content that slides in from an edge with the kit's chrome (drag handle, footer slot, etc.).
PopupSwiperSame as Drawer but with native-feeling swipe-to-dismiss in any of 4 directions.
MaskingAnything else that needs to block the page — custom modals, full-screen loaders, transient confirms.

API

Accepts every Arco MaskingProps prop verbatim. See the Arco Mobile React Masking docs for the full API.

import { Masking } from "@appboxo/ui-kit"

Common props: visible, onClose, maskClass, contentClass, direction, mountOnEnter, unmountOnExit.

Installation

pnpm add @appboxo/ui-kit