Components
Block Ui
A curtain over content that must wait: the blocked region keeps its shape and dims under frosted paper while a quiet wheel reports the wait. Callers own the state; the curtain only answers it.
#Basic usage
Invoices settle every quarter. The ledger holds its shape while the curtain is drawn.
<script setup lang="ts">
import { BlockUI, Button } from "@bysages/vue";
import { ref } from "vue";
const blocked = ref(true);
</script>
<template>
<div class="flex w-96 flex-col gap-4">
<Button size="sm" variant="outline" @click="blocked = !blocked">
{{ blocked ? "Lift the curtain" : "Draw the curtain" }}
</Button>
<BlockUI :blocked="blocked">
<div class="rounded-md border border-border p-6 text-sm text-secondary">
Invoices settle every quarter. The ledger holds its shape while the curtain is drawn.
</div>
</BlockUI>
</div>
</template>
#Props
#BlockUI
A curtain over content that must wait: the blocked region keeps its shape and dims under frosted paper while a quiet wheel reports the wait. Callers own the state; the curtain only answers it.
| Prop | Type | Default | Description |
|---|---|---|---|
blocked | Boolean | false | Whether the curtain is drawn. |