Skip to content
PixiKit

Fact Sheet

The details of one record as label and value rows, with dates and money formatted, long notes that fold, copy buttons, files and inline editing.

pixikit.com/docs/app-ui/data/fact-sheet

Customize

Layout
Striped
Surface
Loading

Props

12
NameTypeDefaultDescription
titlestringNoneThe heading above the rows.
descriptionstringNoneA line under the title.
itemsFactItem[]DEFAULT_ITEMSThe rows, in order.
layout"rows" | "columns" | "compact""rows"`rows` puts the label left and the value right, `columns` a grid of stacked pairs, `compact` tight single lines.
stripedbooleanfalseTints every other row.
surface"plain" | "card""plain"`card` frames the sheet, `plain` leaves it open.
localestring"en-US"The language dates and numbers are written in, as for `Intl`.
emptyTextstringNoneShown instead of the dash for a value that is not set.
onChange(id: string, value: string | number | Date | string[] | null) => voidNoneCalled with the new value when an editable row is saved. Turns inline editing on.
onFileAction(fileId: string) => voidNoneCalled with the file id when a file's button is pressed.
loadingbooleanfalseShows placeholders while the record loads.
classNamestringNone

More data blocks in Pro

View all

Related