Messages
BlockUI
A veil over a region, or the whole page, while it is busy, making what is under it inert and saying why.
WAI-ARIA tested
Import
main.ts
import { BlockUI } from '@vitral/vue';A region
The whole page
API
Read from packages/vue/src/components/BlockUI/types.ts, so it says what the component actually accepts.
Props
| Name | Type | Description |
|---|---|---|
| blocked | boolean | Block the region: it is veiled, busy, and out of reach of pointer and keyboard. |
| fullScreen | boolean | Block the whole page instead of the wrapped region. |
| label | string | What the veil says to assistive technology while blocked. Defaults to the locale's "Loading…". |
Plus pt, dt and unstyled from BaseProps, see pass-through and unstyled mode.
Emits
| Event | Payload | Description |
|---|---|---|
| block | — | — |
| unblock | — | — |
Slots
| Name | Slot props | Description |
|---|---|---|
| default | — | The region that can be blocked. |
| mask | — | Shown on the veil: a spinner, a message. |