Fields

Each field kind's value as records show it: pills, people, stars, money, dates, files and links.

Legal name
Northwind Freight Ltd.
ARR
$184,000
Renewal
Mar 31
Stage
Customer
Segments
LogisticsEnterprise
Owner
MCMaya Chen
Signed DPA
✓
Website
northwind.example
Billing email
[email protected]
Phone
+44 20 7946 0321
Fit
★★★★★
Contracts
msa-2026.pdforder-form.pdf
Contacts
Priya RamanJonas Berg
Open deals
3
Health
#ERROR

Installation

pnpm dlx shadcn@latest add checkfu/uicontext/property

Usage

import { type Item, type Property, ValueView } from "./ui/uicontext/components/kit/Property.ts"
export const FieldValue = <M>(h: Html.H<M>, field: Property, record: Item) =>	ValueView(h, { property: field, value: record.values[field.key] ?? null, locale: "en-US" })

Examples

Empty values

Quiet in a row (a faint ring, a dash or nothing) and in words in a panel.

FieldIn a rowIn a panel
AssigneeNo assignee
Priority–No priority
EstimateNo estimate
DueNo due dateNo due date

API reference

Options

ValueView options
NameTypeDescription
propertyrequiredPropertyThe field the value belongs to, which decides how it's drawn
valuerequiredValueThe value to show; undefined shows it empty
compactbooleanFor dense rows: a choice with a glyph shows only the glyph, and fewer attachments show
localestringThe locale numbers and dates are formatted in; the browser's by default
labelEmptybooleanAn empty value shows its words ("No assignee"), as a property panel does

Accessibility

  • Every value reads as words: a rating is an image named like "4 of 5", an empty value says what's missing ("No assignee"), and a broken formula reads its error.
  • The marks beside a value say who filled it, whether it's still being filled and whether its inputs changed, as named images with the same words in a tooltip.

Source