Skip to content
Twentyfirst UIPro

Period Lock

Data · PeriodLock, Panel

View as Markdown

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.

  • month is formatted in the provider's locale ("October 2026", "Oktober 2026"); period takes your own text.
  • locked / defaultLocked / onLockedChange. onLock and onUnlock may 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.
  • stepUp labels the confirm button "Confirm with passkey"; confirm={false} skips the dialog; readOnly shows 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

PropTypeNotes
surface?Surface`"glass"` for a translucent surface over a map, photo or video; `"solid"` opts out inside a glass provider.
period?stringThe 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?stringThe line under an open period.
confirm?booleanAsk before locking and unlocking (default true).
stepUp?booleanThe confirm button says "Confirm with passkey".
disabled?boolean
readOnly?boolean
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.

Panel

PropTypeNotes
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?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.