Period Lock
Data · PeriodLock, Panel
The state of an accounting period (a month): open or locked, who locked it and when, and the button to lock or unlock it after a confirmation.
monthis formatted in the provider's locale ("October 2026", "Oktober 2026");periodtakes your own text.locked/defaultLocked/onLockedChange.onLockandonUnlockmay return a Promise: the button shows the pending state until it settles (for example while your app asks for a passkey), a rejection shows its message and keeps the state.stepUplabels the confirm button "Confirm with passkey";confirm={false}skips the dialog;readOnlyshows the state only.
Periods
November 202612 bookings · 2 draftsOpen
October 2026Locked Nov 3, 2026 · Mara EllisLocked
September 2026Locked Oct 2, 2026 · Mara EllisLocked
Props
PeriodLock
| Prop | Type | Notes |
|---|---|---|
surface? | Surface | `"glass"` for a translucent surface over a map, photo or video; `"solid"` opts out inside a glass provider. |
period? | string | The period's name ("October 2026"), or `month` to format it in the provider's locale. |
month? | Date | string | number | |
locked? | boolean | |
defaultLocked? | boolean | |
onLockedChange? | (locked: boolean) => void | |
onLock? | () => void | Promise<void> | A Promise shows the pending state (e.g. while a passkey is asked); a rejection its message. |
onUnlock? | () => void | Promise<void> | |
lockedAt? | Date | string | number | |
lockedBy? | string | |
note? | string | The line under an open period. |
confirm? | boolean | Ask before locking and unlocking (default true). |
stepUp? | boolean | The confirm button says "Confirm with passkey". |
disabled? | boolean | |
readOnly? | boolean | |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |
Panel
| Prop | Type | Notes |
|---|---|---|
side? | boolean | |
title? | string | |
subtitle? | string | |
action? | ReactNode | |
children? | ReactNode | |
surface? | Surface | `"glass"`: translucent glass over what is behind (maps, 3D, video, photos); `"solid"` opts out inside a glass `UIProvider`. |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |