Skip to content
Twentyfirst UIHalo

Document List

Life · DocumentList, Panel

View as Markdown

Important papers (IDs, contracts, policies, certificates) with category, holder and expiry: "Expired", "Expires in 19 days" or "Valid until May 2031".

  • Set today for server rendering; soon (default 60 days) marks documents to renew.
  • onOpen(id) makes each document a button.

Documents

Family

Props

DocumentList

PropTypeNotes
documentsLifeDocument[]Required
today?Date | string | numberThe day to count expiry from (default: now).
soon?numberDays ahead that count as expiring soon (default 60).
onOpen?(id: string) => void
label?stringAccessible name (default "Documents").
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.