Components
Property
Icon-and-value fact row for detail sidebars, grouped under a heading.
import { Property } from "@openperf/deft";
import { IconWorld } from "@tabler/icons-react";
<Property.Section heading="Properties">
<Property.Root icon={<IconWorld />}>production</Property.Root>
</Property.Section>;When to use
| Need | Component |
|---|---|
| Fact identified by an icon, in a detail sidebar | Property |
| Key written out, or keys that are not known in advance | Key value |
| Headline number with a chart | Metric |
Anatomy
<Property.Section heading="Properties">
<Property.Root icon={<IconWorld />} /> {/* read-only fact */}
<Property.Link icon={<IconTag />} /> {/* fact that navigates or acts */}
</Property.Section>A row has no text key, only an icon. When the value alone is not clear, add visually hidden text next to it.
Fact types
All three kinds are 28px high with the icon in the same place, so they line up in one section.
| Fact | Use |
|---|---|
| Read-only | Property.Root. A long value is cut with an ellipsis; meta adds muted text at the right edge. |
| Navigates or acts | Property.Link, a ghost Button. Pass a link to render, or onClick. |
| Editable in place | Select whose trigger has variant="ghost" and the icon in media. |
API
Property.Section
Prop
Type
Property.Root
Prop
Type
Property.Link
Also takes the props of Button.Root, except variant.
Prop
Type