Proof Band
A bar of customer logos and a row of key figures together.
Install
npx ui8kit add proof-bandPulls in: compose, empty-state, grid, group, kit-box, kit-text, logo-cloud, lucide-icon, section-frame, stack, stats-band, text, utils
Preview
Trusted by teams everywhere
Northwind
Lumen
Harbor
Summit
Orbit
Grove
12,400
Sites published
99.99%
Uptime
3,200
Teams
0.8s
Median load
Code
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework svelte --dir src --registry-url https://registry.buildy.tw/svelte --strict-cdnnpx ui8kit add proof-band<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->
<!--
Customer logos together with the key numbers: logos above the numbers, or beside them. Axes: layout (above,
beside), logos (name, icon), tone, density.
-->
<script lang="ts" module>
import type { Snippet } from "svelte";
import type { Logo } from "./logo-cloud.types";
import type { Stat } from "./stats-band.types";
export type ProofBandProps = {
id: string;
title: string;
logos: Logo[];
empty?: string;
stats: Stat[];
layout?: "above" | "beside";
logoStyle?: "name" | "icon";
tone?: "default" | "muted";
density?: "default" | "compact";
landmarkLabel?: string;
};
</script>
<script lang="ts">
import Grid from "../compose/Grid.svelte";
import Group from "../compose/Group.svelte";
import LucideIcon from "../icons/LucideIcon.svelte";
import Stack from "../compose/Stack.svelte";
import Text from "../compose/Text.svelte";
import EmptyState from "../components/empty-state.svelte";
import SectionFrame from "../components/section-frame.svelte";
let {
id,
title,
logos,
empty = "",
stats,
layout = "above",
logoStyle = "name",
tone = "default",
density = "default",
landmarkLabel,
}: ProofBandProps = $props();
</script>
<SectionFrame id={id} title={title} tone={tone} density={density} align="center" landmarkLabel={landmarkLabel}>
{#if ((logos?.length ?? 0) === 0)}
<EmptyState icon="building-2" title={empty} />
{:else}
<Grid cols={(((layout as string) === "beside") ? "1-2" : "1")} class="items-center gap-8">
<Group gap="6" justify="center" class="flex-wrap text-muted-foreground" data-slot="logos">
{#each logos as logo (logo.id)}
<Group gap="2" align="center" data-slot="logo">
<LucideIcon name={logo.icon} size={24} />
<Text size="sm" weight="semibold" class={(((logoStyle as string) === "icon") ? "sr-only" : "")}>
{logo.name}
</Text>
</Group>
{/each}
</Group>
<Grid cols={(((layout as string) === "beside") ? "2" : "1-4")} class="gap-6 text-center" data-slot="stats">
{#each stats as stat (stat.id)}
<Stack gap="0" align="center" data-slot="stat">
<Text size="4xl" weight="bold">
{stat.value}
</Text>
<Text size="sm" class="text-muted-foreground">
{stat.label}
</Text>
</Stack>
{/each}
</Grid>
</Grid>
{/if}
</SectionFrame>
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework react --dir src --registry-url https://registry.buildy.tw/react --strict-cdnnpx ui8kit add proof-band// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
/**
* Customer logos together with the key numbers: logos above the numbers, or beside them. Axes: layout (above,
* beside), logos (name, icon), tone, density.
*/
import { type ReactNode } from "react";
import { Grid, Group, Stack, Text } from "../compose";
import { LucideIcon } from "../icons/LucideIcon";
import { EmptyState } from "../components/empty-state";
import { SectionFrame } from "../components/section-frame";
import type { Logo } from "./logo-cloud.types";
import type { Stat } from "./stats-band.types";
export type ProofBandProps = {
id: string;
title: string;
logos: Logo[];
empty?: string;
stats: Stat[];
layout?: "above" | "beside";
logoStyle?: "name" | "icon";
tone?: "default" | "muted";
density?: "default" | "compact";
landmarkLabel?: string;
};
export function ProofBand({
id,
title,
logos,
empty = "",
stats,
layout = "above",
logoStyle = "name",
tone = "default",
density = "default",
landmarkLabel,
}: ProofBandProps) {
return (
<SectionFrame id={id} title={title} tone={tone} density={density} align="center" landmarkLabel={landmarkLabel}>
{((logos?.length ?? 0) === 0) ? (
<EmptyState icon="building-2" title={empty} />
) : (
<Grid cols={(((layout as string) === "beside") ? "1-2" : "1")} className="items-center gap-8">
<Group gap="6" justify="center" className="flex-wrap text-muted-foreground" data-slot="logos">
{(logos ?? []).map((logo) => (
<Group key={logo.id} gap="2" align="center" data-slot="logo">
<LucideIcon name={logo.icon} size={24} />
<Text size="sm" weight="semibold" className={(((logoStyle as string) === "icon") ? "sr-only" : "")}>
{logo.name}
</Text>
</Group>
))}
</Group>
<Grid cols={(((layout as string) === "beside") ? "2" : "1-4")} className="gap-6 text-center" data-slot="stats">
{(stats ?? []).map((stat) => (
<Stack key={stat.id} gap="0" align="center" data-slot="stat">
<Text size="4xl" weight="bold">
{stat.value}
</Text>
<Text size="sm" className="text-muted-foreground">
{stat.label}
</Text>
</Stack>
))}
</Grid>
</Grid>
)}
</SectionFrame>
);
}
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework vue --dir src --registry-url https://registry.buildy.tw/vue --strict-cdnnpx ui8kit add proof-band<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->
<!--
Customer logos together with the key numbers: logos above the numbers, or beside them. Axes: layout (above,
beside), logos (name, icon), tone, density.
-->
<script lang="ts">
import type { Logo } from "./logo-cloud.types";
import type { Stat } from "./stats-band.types";
export type ProofBandProps = {
id: string;
title: string;
logos: Logo[];
empty?: string;
stats: Stat[];
layout?: "above" | "beside";
logoStyle?: "name" | "icon";
tone?: "default" | "muted";
density?: "default" | "compact";
landmarkLabel?: string;
};
</script>
<script setup lang="ts">
import Grid from "../compose/Grid.vue";
import Group from "../compose/Group.vue";
import LucideIcon from "../icons/LucideIcon.vue";
import Stack from "../compose/Stack.vue";
import Text from "../compose/Text.vue";
import EmptyState from "../components/empty-state.vue";
import SectionFrame from "../components/section-frame.vue";
const {
id,
title,
logos,
empty = "",
stats,
layout = "above",
logoStyle = "name",
tone = "default",
density = "default",
landmarkLabel,
} = defineProps<ProofBandProps>();
</script>
<template>
<SectionFrame
:id="id"
:title="title"
:tone="tone"
:density="density"
align="center"
:landmarkLabel="landmarkLabel"
>
<EmptyState v-if="((logos?.length ?? 0) === 0)" icon="building-2" :title="empty" />
<Grid v-else :cols="(((layout as string) === 'beside') ? '1-2' : '1')" class="items-center gap-8">
<Group gap="6" justify="center" class="flex-wrap text-muted-foreground" data-slot="logos">
<Group v-for="logo in logos" :key="logo.id" gap="2" align="center" data-slot="logo">
<LucideIcon :name="logo.icon" :size="24" />
<Text size="sm" weight="semibold" :class="(((logoStyle as string) === 'icon') ? 'sr-only' : '')">
{{ logo.name }}
</Text>
</Group>
</Group>
<Grid :cols="(((layout as string) === 'beside') ? '2' : '1-4')" class="gap-6 text-center" data-slot="stats">
<Stack v-for="stat in stats" :key="stat.id" gap="0" align="center" data-slot="stat">
<Text size="4xl" weight="bold">
{{ stat.value }}
</Text>
<Text size="sm" class="text-muted-foreground">
{{ stat.label }}
</Text>
</Stack>
</Grid>
</Grid>
</SectionFrame>
</template>
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework solid --dir src --registry-url https://registry.buildy.tw/solid --strict-cdnnpx ui8kit add proof-band// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
/**
* Customer logos together with the key numbers: logos above the numbers, or beside them. Axes: layout (above,
* beside), logos (name, icon), tone, density.
*/
import { For, type JSX } from "solid-js";
import { Grid, Group, Stack, Text } from "../compose";
import { LucideIcon } from "../icons/LucideIcon";
import { EmptyState } from "../components/empty-state";
import { SectionFrame } from "../components/section-frame";
import type { Logo } from "./logo-cloud.types";
import type { Stat } from "./stats-band.types";
export type ProofBandProps = {
id: string;
title: string;
logos: Logo[];
empty?: string;
stats: Stat[];
layout?: "above" | "beside";
logoStyle?: "name" | "icon";
tone?: "default" | "muted";
density?: "default" | "compact";
landmarkLabel?: string;
};
export function ProofBand({
id,
title,
logos,
empty = "",
stats,
layout = "above",
logoStyle = "name",
tone = "default",
density = "default",
landmarkLabel,
}: ProofBandProps) {
return (
<SectionFrame id={id} title={title} tone={tone} density={density} align="center" landmarkLabel={landmarkLabel}>
{((logos?.length ?? 0) === 0) ? (
<EmptyState icon="building-2" title={empty} />
) : (
<Grid cols={(((layout as string) === "beside") ? "1-2" : "1")} class="items-center gap-8">
<Group gap="6" justify="center" class="flex-wrap text-muted-foreground" data-slot="logos">
<For each={logos ?? []}>{(logo) => (
<Group gap="2" align="center" data-slot="logo">
<LucideIcon name={logo.icon} size={24} />
<Text size="sm" weight="semibold" class={(((logoStyle as string) === "icon") ? "sr-only" : "")}>
{logo.name}
</Text>
</Group>
)}</For>
</Group>
<Grid cols={(((layout as string) === "beside") ? "2" : "1-4")} class="gap-6 text-center" data-slot="stats">
<For each={stats ?? []}>{(stat) => (
<Stack gap="0" align="center" data-slot="stat">
<Text size="4xl" weight="bold">
{stat.value}
</Text>
<Text size="sm" class="text-muted-foreground">
{stat.label}
</Text>
</Stack>
)}</For>
</Grid>
</Grid>
)}
</SectionFrame>
);
}
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework templ --dir src --registry-url https://registry.buildy.tw/templ --strict-cdnnpx ui8kit add proof-band// Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
// Source: packages/compose-gen/specs/organisms/proof-band.json
package blocks
import (
"github.com/ui8kit/codegen/generated/templ/ui/box"
"github.com/ui8kit/codegen/generated/templ/compose"
"github.com/ui8kit/codegen/generated/templ/icons"
"github.com/ui8kit/codegen/generated/templ/ui/text"
uiutils "github.com/ui8kit/codegen/generated/templ/orgutils"
)
// ProofBandProps are the props of ProofBand; the values are the JSON shapes of the TypeScript props.
type ProofBandProps struct {
Id any `json:"id"`
Title any `json:"title"`
Logos any `json:"logos"`
Empty any `json:"empty"`
Stats any `json:"stats"`
Layout any `json:"layout"`
LogoStyle any `json:"logoStyle"`
Tone any `json:"tone"`
Density any `json:"density"`
LandmarkLabel any `json:"landmarkLabel"`
}
// Customer logos together with the key numbers: logos above the numbers, or beside them. Axes: layout (above, beside), logos (name, icon), tone, density.
templ ProofBand(p ProofBandProps) {
{{ vId := p.Id }}
{{ vTitle := p.Title }}
{{ vLogos := p.Logos }}
{{ vEmpty := uiutils.Def(p.Empty, "") }}
{{ vStats := p.Stats }}
{{ vLayout := uiutils.Def(p.Layout, "above") }}
{{ vLogoStyle := uiutils.Def(p.LogoStyle, "name") }}
{{ vTone := uiutils.Def(p.Tone, "default") }}
{{ vDensity := uiutils.Def(p.Density, "default") }}
{{ vLandmarkLabel := p.LandmarkLabel }}
@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Tone: vTone, Density: vDensity, Align: "center", LandmarkLabel: vLandmarkLabel}) {
if uiutils.Eq(uiutils.Len(vLogos), float64(0)) {
@EmptyState(EmptyStateProps{Icon: "building-2", Title: vEmpty})
} else {
@compose.Grid(compose.GridProps{Cols: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "beside")), "1-2", "1")), BoxProps: box.BoxProps{Class: "items-center gap-8"}}) {
@compose.Group(compose.GroupProps{Gap: "6", Justify: "center", BoxProps: box.BoxProps{Class: "flex-wrap text-muted-foreground", Attrs: uiutils.Attrs("data-slot", "logos")}}) {
for _, vLogo := range uiutils.L(vLogos) {
@compose.Group(compose.GroupProps{Gap: "2", Align: "center", BoxProps: box.BoxProps{Attrs: uiutils.Attrs("data-slot", "logo")}}) {
@icons.LucideIcon(icons.LucideIconProps{Name: uiutils.S(uiutils.Get(vLogo, "icon")), Size: 24})
@compose.Text(compose.TextProps{Size: "sm", Weight: "semibold", TextProps: text.TextProps{Class: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vLogoStyle, "icon")), "sr-only", ""))}}) {
{ uiutils.Text(uiutils.Get(vLogo, "name")) }
}
}
}
}
@compose.Grid(compose.GridProps{Cols: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "beside")), "2", "1-4")), BoxProps: box.BoxProps{Class: "gap-6 text-center", Attrs: uiutils.Attrs("data-slot", "stats")}}) {
for _, vStat := range uiutils.L(vStats) {
@compose.Stack(compose.StackProps{Gap: "0", Align: "center", BoxProps: box.BoxProps{Attrs: uiutils.Attrs("data-slot", "stat")}}) {
@compose.Text(compose.TextProps{Size: "4xl", Weight: "bold", TextProps: text.TextProps{}}) {
{ uiutils.Text(uiutils.Get(vStat, "value")) }
}
@compose.Text(compose.TextProps{Size: "sm", TextProps: text.TextProps{Class: "text-muted-foreground"}}) {
{ uiutils.Text(uiutils.Get(vStat, "label")) }
}
}
}
}
}
}
}
}
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework twig --dir src --registry-url https://registry.buildy.tw/twig --strict-cdnnpx ui8kit add proof-band{#- Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
Source: packages/compose-gen/specs/organisms/proof-band.json
Customer logos together with the key numbers: logos above the numbers, or beside them. Axes: layout (above, beside), logos (name, icon), tone, density.
Props (p): id, title, logos, empty, stats, layout, logoStyle, tone, density, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_logos = (p.logos ?? null) -%}
{%- set v_empty = (p.empty ?? '') -%}
{%- set v_stats = (p.stats ?? null) -%}
{%- set v_layout = (p.layout ?? 'above') -%}
{%- set v_logoStyle = (p.logoStyle ?? 'name') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_density = (p.density ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set c_9 -%}
{%- if og_t(og_eq(og_len(v_logos), 0)) %}
{{ include('blocks/empty-state.html.twig', {'p': {'icon': 'building-2', 'title': v_empty}}, with_context = false) }}
{%- else %}
{%- set c_8 -%}
{%- set c_3 -%}
{%- for v_logo in og_l(v_logos) %}
{%- set c_2 -%}
{{ include('icons/LucideIcon.html.twig', {'name': og_s(og_get(v_logo, ['icon'])), 'size': 24}, with_context = false) }}
{%- set c_1 -%}
{{ og_text(og_get(v_logo, ['name'])) }}
{%- endset -%}
{{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'class': og_s((og_t(og_eq(v_logoStyle, 'icon')) ? 'sr-only' : '')), 'children': c_1}, with_context = false) }}
{%- endset -%}
{{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'attrs': og_attrs(['data-slot', 'logo']), 'children': c_2}, with_context = false) }}
{%- endfor %}
{%- endset -%}
{{ include('compose/Group.html.twig', {'gap': '6', 'justify': 'center', 'class': 'flex-wrap text-muted-foreground', 'attrs': og_attrs(['data-slot', 'logos']), 'children': c_3}, with_context = false) }}
{%- set c_7 -%}
{%- for v_stat in og_l(v_stats) %}
{%- set c_6 -%}
{%- set c_4 -%}
{{ og_text(og_get(v_stat, ['value'])) }}
{%- endset -%}
{{ include('compose/Text.html.twig', {'size': '4xl', 'weight': 'bold', 'children': c_4}, with_context = false) }}
{%- set c_5 -%}
{{ og_text(og_get(v_stat, ['label'])) }}
{%- endset -%}
{{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_5}, with_context = false) }}
{%- endset -%}
{{ include('compose/Stack.html.twig', {'gap': '0', 'align': 'center', 'attrs': og_attrs(['data-slot', 'stat']), 'children': c_6}, with_context = false) }}
{%- endfor %}
{%- endset -%}
{{ include('compose/Grid.html.twig', {'cols': og_s((og_t(og_eq(v_layout, 'beside')) ? '2' : '1-4')), 'class': 'gap-6 text-center', 'attrs': og_attrs(['data-slot', 'stats']), 'children': c_7}, with_context = false) }}
{%- endset -%}
{{ include('compose/Grid.html.twig', {'cols': og_s((og_t(og_eq(v_layout, 'beside')) ? '1-2' : '1')), 'class': 'items-center gap-8', 'children': c_8}, with_context = false) }}
{%- endif %}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'align': 'center', 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_9)}, with_context = false) }}
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework latte --dir src --registry-url https://registry.buildy.tw/latte --strict-cdnnpx ui8kit add proof-band{* Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
Source: packages/compose-gen/specs/organisms/proof-band.json
Customer logos together with the key numbers: logos above the numbers, or beside them. Axes: layout (above, beside), logos (name, icon), tone, density.
Props (p): id, title, logos, empty, stats, layout, logoStyle, tone, density, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_logos = ($p['logos'] ?? null)}
{var $v_empty = ($p['empty'] ?? '')}
{var $v_stats = ($p['stats'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'above')}
{var $v_logoStyle = ($p['logoStyle'] ?? 'name')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_density = ($p['density'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $c_9}
{if og_t(og_eq(og_len($v_logos), 0))}
{=og_include('blocks/empty-state.latte', ['p' => ['icon' => 'building-2', 'title' => $v_empty]])|noescape}
{else}
{capture $c_8}
{capture $c_3}
{foreach og_l($v_logos) as $v_logo}
{capture $c_2}
{=og_include('icons/LucideIcon.latte', ['name' => og_s(og_get($v_logo, ['icon'])), 'size' => 24])|noescape}
{capture $c_1}
{=og_text(og_get($v_logo, ['name']))}
{/capture}
{=og_include('compose/Text.latte', ['size' => 'sm', 'weight' => 'semibold', 'class' => og_s((og_t(og_eq($v_logoStyle, 'icon')) ? 'sr-only' : '')), 'children' => (string) $c_1])|noescape}
{/capture}
{=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'center', 'attrs' => og_attrs(['data-slot', 'logo']), 'children' => (string) $c_2])|noescape}
{/foreach}
{/capture}
{=og_include('compose/Group.latte', ['gap' => '6', 'justify' => 'center', 'class' => 'flex-wrap text-muted-foreground', 'attrs' => og_attrs(['data-slot', 'logos']), 'children' => (string) $c_3])|noescape}
{capture $c_7}
{foreach og_l($v_stats) as $v_stat}
{capture $c_6}
{capture $c_4}
{=og_text(og_get($v_stat, ['value']))}
{/capture}
{=og_include('compose/Text.latte', ['size' => '4xl', 'weight' => 'bold', 'children' => (string) $c_4])|noescape}
{capture $c_5}
{=og_text(og_get($v_stat, ['label']))}
{/capture}
{=og_include('compose/Text.latte', ['size' => 'sm', 'class' => 'text-muted-foreground', 'children' => (string) $c_5])|noescape}
{/capture}
{=og_include('compose/Stack.latte', ['gap' => '0', 'align' => 'center', 'attrs' => og_attrs(['data-slot', 'stat']), 'children' => (string) $c_6])|noescape}
{/foreach}
{/capture}
{=og_include('compose/Grid.latte', ['cols' => og_s((og_t(og_eq($v_layout, 'beside')) ? '2' : '1-4')), 'class' => 'gap-6 text-center', 'attrs' => og_attrs(['data-slot', 'stats']), 'children' => (string) $c_7])|noescape}
{/capture}
{=og_include('compose/Grid.latte', ['cols' => og_s((og_t(og_eq($v_layout, 'beside')) ? '1-2' : '1')), 'class' => 'items-center gap-8', 'children' => (string) $c_8])|noescape}
{/if}
{/capture}
{=og_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'tone' => $v_tone, 'density' => $v_density, 'align' => 'center', 'landmarkLabel' => $v_landmarkLabel], 'children' => og_markup($c_9)])|noescape}
Point the CLI at this runtime once, then add the item:
npx ui8kit init --yes --framework jinja2 --dir src --registry-url https://registry.buildy.tw/jinja2 --strict-cdnnpx ui8kit add proof-band{#- Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
Source: packages/compose-gen/specs/organisms/proof-band.json
Customer logos together with the key numbers: logos above the numbers, or beside them. Axes: layout (above, beside), logos (name, icon), tone, density.
Props (p): id, title, logos, empty, stats, layout, logoStyle, tone, density, landmarkLabel. -#}
{%- set v_id = og_def(p['id'], none) -%}
{%- set v_title = og_def(p['title'], none) -%}
{%- set v_logos = og_def(p['logos'], none) -%}
{%- set v_empty = og_def(p['empty'], '') -%}
{%- set v_stats = og_def(p['stats'], none) -%}
{%- set v_layout = og_def(p['layout'], 'above') -%}
{%- set v_logoStyle = og_def(p['logoStyle'], 'name') -%}
{%- set v_tone = og_def(p['tone'], 'default') -%}
{%- set v_density = og_def(p['density'], 'default') -%}
{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}
{%- set c_9 -%}
{%- if og_t(og_eq(og_len(v_logos), 0)) %}
{{ og_include('blocks/empty-state.html.j2', {'p': {'icon': 'building-2', 'title': v_empty}}) }}
{%- else %}
{%- set c_8 -%}
{%- set c_3 -%}
{%- for v_logo in og_l(v_logos) %}
{%- set c_2 -%}
{{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': og_s(og_get(v_logo, ['icon'])), 'Size': 24}}) }}
{%- set c_1 -%}
{{ og_text(og_get(v_logo, ['name'])) }}
{%- endset -%}
{{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold', 'Class': og_s(('sr-only' if og_t(og_eq(v_logoStyle, 'icon')) else ''))}, 'children': c_1}) }}
{%- endset -%}
{{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'center', 'Attrs': og_attrs(['data-slot', 'logo'])}, 'children': c_2}) }}
{%- endfor %}
{%- endset -%}
{{ og_include('compose/group.html.j2', {'p': {'Gap': '6', 'Justify': 'center', 'Class': 'flex-wrap text-muted-foreground', 'Attrs': og_attrs(['data-slot', 'logos'])}, 'children': c_3}) }}
{%- set c_7 -%}
{%- for v_stat in og_l(v_stats) %}
{%- set c_6 -%}
{%- set c_4 -%}
{{ og_text(og_get(v_stat, ['value'])) }}
{%- endset -%}
{{ og_include('compose/text.html.j2', {'p': {'Size': '4xl', 'Weight': 'bold'}, 'children': c_4}) }}
{%- set c_5 -%}
{{ og_text(og_get(v_stat, ['label'])) }}
{%- endset -%}
{{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_5}) }}
{%- endset -%}
{{ og_include('compose/stack.html.j2', {'p': {'Gap': '0', 'Align': 'center', 'Attrs': og_attrs(['data-slot', 'stat'])}, 'children': c_6}) }}
{%- endfor %}
{%- endset -%}
{{ og_include('compose/grid.html.j2', {'p': {'Cols': og_s(('2' if og_t(og_eq(v_layout, 'beside')) else '1-4')), 'Class': 'gap-6 text-center', 'Attrs': og_attrs(['data-slot', 'stats'])}, 'children': c_7}) }}
{%- endset -%}
{{ og_include('compose/grid.html.j2', {'p': {'Cols': og_s(('1-2' if og_t(og_eq(v_layout, 'beside')) else '1')), 'Class': 'items-center gap-8'}, 'children': c_8}) }}
{%- endif %}
{%- endset -%}
{{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'align': 'center', 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_9)}) }}
Props
Names and types come from the xgen specs of the source. Standard HTML attributes (id, role, tabIndex, aria-*) pass through to the root element; the class prop is className in React.
Customer logos together with the key numbers: logos above the numbers, or beside them. Axes: layout (above, beside), logos (name, icon), tone, density.
| Prop | Type | Default | Description |
|---|---|---|---|
| id (required) | string | - | |
| title (required) | string | - | |
| logos (required) | Logo[] | - | |
| empty | string | "" | the text of the empty state (no records), from the dictionary |
| stats (required) | Stat[] | - | |
| layout | "above" | "beside" | "above" | |
| logoStyle | "name" | "icon" | "name" | |
| tone | "default" | "muted" | "default" | |
| density | "default" | "compact" | "default" | |
| landmarkLabel | string | - | accessible name of the landmark of this component when the page shows it more than once (a variant); replaces the heading name of the root landmark, follows the name of a nested one |