Facts
Label and value rows.
On this page
Examples
Facts and groups
Copy buttons write to the clipboard from .NET, so they are disabled until the page is interactive. Max and Step show a Show more button.
- Status
- Paid
- Environment
- Production
- Site
- klyroo.dev
- Shipping address
- —
- Plan
Order
- Reference
- ORD-1042
- Date
- Nov 20, 2026
Customer
- Name
- Acme Corp
- Region
- eu-west-3
Razor
<div class="grid w-full gap-4 md:grid-cols-2">
<KlyFacts Surface="KlySurface.Bordered" Items="@(new[]
{
new KlyFact("Status") { Badge = new KlyBadgeItem("Paid") { Color = KlyColor.Success, Icon = "check" } },
new KlyFact("Environment") { Value = "Production", Copy = true, Mono = true },
new KlyFact("Site") { Value = "klyroo.dev", Href = "https://klyroo.dev" },
new KlyFact("Shipping address") { Value = null },
new KlyFact("Plan") { Loading = true },
})" />
<KlyFacts Surface="KlySurface.Bordered" Max="2" Step="2" Groups="@(new[]
{
new KlyFactGroup("Order", new[] { new KlyFact("Reference") { Value = "ORD-1042", Mono = true }, new KlyFact("Date") { Value = "Nov 20, 2026" } }),
new KlyFactGroup("Customer", new[] { new KlyFact("Name") { Value = "Acme Corp" }, new KlyFact("Region") { Value = "eu-west-3" } }),
})" />
</div>API
KlyFacts
A list of label and value rows, flat or grouped, with badges, links, copy buttons and loading placeholders.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
Class |
string |
Classes added to the root element, merged last so they win over the theme. | |
Groups |
IReadOnlyList |
The titled groups of rows. When set, they replace Items , and Max does not apply. | |
Items |
IReadOnlyList |
The label and value rows, flat. They are ignored when Groups is set. | |
Loading |
bool |
false |
Shows a skeleton placeholder instead of the content. |
Max |
int? |
The number of rows shown before a Show more button (all rows when null ). It applies to Items only. | |
Step |
int? |
The number of rows each click on Show more reveals (all the remaining ones when null ). | |
Surface |
KlySurface? |
The surface treatment. Bordered when not set. Values: Plain, Muted, Bordered, Elevated. |
|
Ui |
FactsUi |
Per-instance class overrides of the slots of the facts, see FactsUi . They are merged after the theme and the Class parameter wins on the root slot. |
Ui slots
Ui takes a FactsUi with one class string per slot, merged after the theme.
| Slot | Styles |
|---|---|
Root |
Classes merged into the root slot of KlyFacts , after the theme and the app configuration. |
Group |
Classes merged into the group slot of KlyFacts , after the theme and the app configuration. |
GroupHeader |
Classes merged into the groupHeader slot of KlyFacts , after the theme and the app configuration. |
GroupTitle |
Classes merged into the groupTitle slot of KlyFacts , after the theme and the app configuration. |
GroupAside |
Classes merged into the groupAside slot of KlyFacts , after the theme and the app configuration. |
List |
Classes merged into the list slot of KlyFacts , after the theme and the app configuration. |
Item |
Classes merged into the item slot of KlyFacts , after the theme and the app configuration. |
Label |
Classes merged into the label slot of KlyFacts , after the theme and the app configuration. |
LabelRow |
Classes merged into the labelRow slot of KlyFacts , after the theme and the app configuration. |
LabelIcon |
Classes merged into the labelIcon slot of KlyFacts , after the theme and the app configuration. |
Hint |
Classes merged into the hint slot of KlyFacts , after the theme and the app configuration. |
Value |
Classes merged into the value slot of KlyFacts , after the theme and the app configuration. |
ValueMono |
Classes merged into the valueMono slot of KlyFacts , after the theme and the app configuration. |
ValueEmphasis |
Classes merged into the valueEmphasis slot of KlyFacts , after the theme and the app configuration. |
ValueSkeleton |
Classes merged into the valueSkeleton slot of KlyFacts , after the theme and the app configuration. |
Empty |
Classes merged into the empty slot of KlyFacts , after the theme and the app configuration. |
Link |
Classes merged into the link slot of KlyFacts , after the theme and the app configuration. |
Copy |
Classes merged into the copy slot of KlyFacts , after the theme and the app configuration. |
CopyIcon |
Classes merged into the copyIcon slot of KlyFacts , after the theme and the app configuration. |
More |
Classes merged into the more slot of KlyFacts , after the theme and the app configuration. |
MoreIcon |
Classes merged into the moreIcon slot of KlyFacts , after the theme and the app configuration. |
None |
Classes merged into the none slot of KlyFacts , after the theme and the app configuration. |
Skeleton |
Classes merged into the skeleton slot of KlyFacts , after the theme and the app configuration. |