Logo Cloud
Customers and partners as glyphs with names.
Install
npx ui8kit add logo-cloudPulls in: compose, empty-state, grid, group, kit-box, kit-text, logo-ribbon, lucide-icon, section-frame, text, utils
Preview
Best Companies Use Our Service
Northwind
Lumen
Harbor
Summit
Orbit
Grove
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 logo-cloud<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->
<!--
A heading and the names of customers or partners as Lucide glyphs with a name. Axes: layout (grid, row),
columns (2, 3, 4), item (name, icon only, tile), density, tone.
-->
<script lang="ts" module>
import type { Snippet } from "svelte";
import type { Logo } from "./logo-cloud.types";
export type LogoCloudProps = {
id: string;
title: string;
logos: Logo[];
empty?: string;
layout?: "grid" | "row";
cols?: "2" | "3" | "4";
item?: "name" | "icon" | "tile";
tone?: "default" | "muted";
density?: "roomy" | "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 Text from "../compose/Text.svelte";
import EmptyState from "../components/empty-state.svelte";
import LogoRibbon from "../blocks/logo-ribbon.svelte";
import SectionFrame from "../components/section-frame.svelte";
import { cn } from "../utils";
let {
id,
title,
logos,
empty = "",
layout = "grid",
cols = "4",
item = "name",
tone = "default",
density = "default",
landmarkLabel,
}: LogoCloudProps = $props();
</script>
{#if ((logos?.length ?? 0) === 0)}
<SectionFrame id={id} title={title} tone={tone} density={density} align="center" landmarkLabel={landmarkLabel}>
<EmptyState icon="building-2" title={empty} />
</SectionFrame>
{:else if ((layout as string) === "row")}
<LogoRibbon id={id} title={title} logos={logos} tone={tone} density={density} landmarkLabel={landmarkLabel} />
{:else}
<SectionFrame id={id} title={title} tone={tone} density={density} align="center" landmarkLabel={landmarkLabel}>
<Grid
cols={
(cols as string) === "2" ? "2"
: (cols as string) === "3" ? "2-3"
: (cols as string) === "4" ? "2-4"
: "3-6"
}
class="gap-4"
data-slot="items"
>
{#each logos as logo (logo.id)}
<Group
gap="2"
align="center"
justify="center"
class={cn(
"text-muted-foreground",
(((item as string) === "tile") ? "flex-col rounded p-4 inset-ring inset-ring-border" : "")
)}
data-slot="item"
>
<LucideIcon name={logo.icon} size={24} />
<Text size="sm" weight="semibold" class={(((item as string) === "icon") ? "sr-only" : "")}>
{logo.name}
</Text>
</Group>
{/each}
</Grid>
</SectionFrame>
{/if}
// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
export type Logo = {
id: string;
name: string;
icon: string;
};
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 logo-cloud// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
/**
* A heading and the names of customers or partners as Lucide glyphs with a name. Axes: layout (grid, row),
* columns (2, 3, 4), item (name, icon only, tile), density, tone.
*/
import { type ReactNode } from "react";
import { Grid, Group, Text } from "../compose";
import { LucideIcon } from "../icons/LucideIcon";
import { EmptyState } from "../components/empty-state";
import { LogoRibbon } from "../blocks/logo-ribbon";
import { SectionFrame } from "../components/section-frame";
import { cn } from "../utils";
import type { Logo } from "./logo-cloud.types";
export type LogoCloudProps = {
id: string;
title: string;
logos: Logo[];
empty?: string;
layout?: "grid" | "row";
cols?: "2" | "3" | "4";
item?: "name" | "icon" | "tile";
tone?: "default" | "muted";
density?: "roomy" | "default" | "compact";
landmarkLabel?: string;
};
export function LogoCloud({
id,
title,
logos,
empty = "",
layout = "grid",
cols = "4",
item = "name",
tone = "default",
density = "default",
landmarkLabel,
}: LogoCloudProps) {
return (
<>
{((logos?.length ?? 0) === 0) ? (
<SectionFrame id={id} title={title} tone={tone} density={density} align="center" landmarkLabel={landmarkLabel}>
<EmptyState icon="building-2" title={empty} />
</SectionFrame>
) : ((layout as string) === "row") ? (
<LogoRibbon id={id} title={title} logos={logos} tone={tone} density={density} landmarkLabel={landmarkLabel} />
) : (
<SectionFrame id={id} title={title} tone={tone} density={density} align="center" landmarkLabel={landmarkLabel}>
<Grid
cols={
(cols as string) === "2" ? "2"
: (cols as string) === "3" ? "2-3"
: (cols as string) === "4" ? "2-4"
: "3-6"
}
className="gap-4"
data-slot="items"
>
{(logos ?? []).map((logo) => (
<Group key={logo.id}
gap="2"
align="center"
justify="center"
className={cn(
"text-muted-foreground",
(((item as string) === "tile") ? "flex-col rounded p-4 inset-ring inset-ring-border" : "")
)}
data-slot="item"
>
<LucideIcon name={logo.icon} size={24} />
<Text size="sm" weight="semibold" className={(((item as string) === "icon") ? "sr-only" : "")}>
{logo.name}
</Text>
</Group>
))}
</Grid>
</SectionFrame>
)}
</>
);
}
// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
export type Logo = {
id: string;
name: string;
icon: string;
};
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 logo-cloud// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
export type Logo = {
id: string;
name: string;
icon: string;
};
<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->
<!--
A heading and the names of customers or partners as Lucide glyphs with a name. Axes: layout (grid, row),
columns (2, 3, 4), item (name, icon only, tile), density, tone.
-->
<script lang="ts">
import type { Logo } from "./logo-cloud.types";
export type LogoCloudProps = {
id: string;
title: string;
logos: Logo[];
empty?: string;
layout?: "grid" | "row";
cols?: "2" | "3" | "4";
item?: "name" | "icon" | "tile";
tone?: "default" | "muted";
density?: "roomy" | "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 Text from "../compose/Text.vue";
import EmptyState from "../components/empty-state.vue";
import LogoRibbon from "../blocks/logo-ribbon.vue";
import SectionFrame from "../components/section-frame.vue";
import { cn } from "../utils";
const {
id,
title,
logos,
empty = "",
layout = "grid",
cols = "4",
item = "name",
tone = "default",
density = "default",
landmarkLabel,
} = defineProps<LogoCloudProps>();
</script>
<template>
<SectionFrame v-if="((logos?.length ?? 0) === 0)"
:id="id"
:title="title"
:tone="tone"
:density="density"
align="center"
:landmarkLabel="landmarkLabel"
>
<EmptyState icon="building-2" :title="empty" />
</SectionFrame>
<LogoRibbon v-else-if="((layout as string) === 'row')"
:id="id"
:title="title"
:logos="logos"
:tone="tone"
:density="density"
:landmarkLabel="landmarkLabel"
/>
<SectionFrame v-else
:id="id"
:title="title"
:tone="tone"
:density="density"
align="center"
:landmarkLabel="landmarkLabel"
>
<Grid
:cols="
(cols as string) === '2' ? '2'
: (cols as string) === '3' ? '2-3'
: (cols as string) === '4' ? '2-4'
: '3-6'
"
class="gap-4"
data-slot="items"
>
<Group v-for="logo in logos" :key="logo.id"
gap="2"
align="center"
justify="center"
:class="cn(
'text-muted-foreground',
(((item as string) === 'tile') ? 'flex-col rounded p-4 inset-ring inset-ring-border' : '')
)"
data-slot="item"
>
<LucideIcon :name="logo.icon" :size="24" />
<Text size="sm" weight="semibold" :class="(((item as string) === 'icon') ? 'sr-only' : '')">
{{ logo.name }}
</Text>
</Group>
</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 logo-cloud// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
/**
* A heading and the names of customers or partners as Lucide glyphs with a name. Axes: layout (grid, row),
* columns (2, 3, 4), item (name, icon only, tile), density, tone.
*/
import { For, type JSX } from "solid-js";
import { Grid, Group, Text } from "../compose";
import { LucideIcon } from "../icons/LucideIcon";
import { EmptyState } from "../components/empty-state";
import { LogoRibbon } from "../blocks/logo-ribbon";
import { SectionFrame } from "../components/section-frame";
import { cn } from "../utils";
import type { Logo } from "./logo-cloud.types";
export type LogoCloudProps = {
id: string;
title: string;
logos: Logo[];
empty?: string;
layout?: "grid" | "row";
cols?: "2" | "3" | "4";
item?: "name" | "icon" | "tile";
tone?: "default" | "muted";
density?: "roomy" | "default" | "compact";
landmarkLabel?: string;
};
export function LogoCloud({
id,
title,
logos,
empty = "",
layout = "grid",
cols = "4",
item = "name",
tone = "default",
density = "default",
landmarkLabel,
}: LogoCloudProps) {
return (
<>
{((logos?.length ?? 0) === 0) ? (
<SectionFrame id={id} title={title} tone={tone} density={density} align="center" landmarkLabel={landmarkLabel}>
<EmptyState icon="building-2" title={empty} />
</SectionFrame>
) : ((layout as string) === "row") ? (
<LogoRibbon id={id} title={title} logos={logos} tone={tone} density={density} landmarkLabel={landmarkLabel} />
) : (
<SectionFrame id={id} title={title} tone={tone} density={density} align="center" landmarkLabel={landmarkLabel}>
<Grid
cols={
(cols as string) === "2" ? "2"
: (cols as string) === "3" ? "2-3"
: (cols as string) === "4" ? "2-4"
: "3-6"
}
class="gap-4"
data-slot="items"
>
<For each={logos ?? []}>{(logo) => (
<Group
gap="2"
align="center"
justify="center"
class={cn(
"text-muted-foreground",
(((item as string) === "tile") ? "flex-col rounded p-4 inset-ring inset-ring-border" : "")
)}
data-slot="item"
>
<LucideIcon name={logo.icon} size={24} />
<Text size="sm" weight="semibold" class={(((item as string) === "icon") ? "sr-only" : "")}>
{logo.name}
</Text>
</Group>
)}</For>
</Grid>
</SectionFrame>
)}
</>
);
}
// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
export type Logo = {
id: string;
name: string;
icon: string;
};
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 logo-cloud// 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/logo-cloud.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"
)
// LogoCloudProps are the props of LogoCloud; the values are the JSON shapes of the TypeScript props.
type LogoCloudProps struct {
Id any `json:"id"`
Title any `json:"title"`
Logos any `json:"logos"`
Empty any `json:"empty"`
Layout any `json:"layout"`
Cols any `json:"cols"`
Item any `json:"item"`
Tone any `json:"tone"`
Density any `json:"density"`
LandmarkLabel any `json:"landmarkLabel"`
}
// A heading and the names of customers or partners as Lucide glyphs with a name. Axes: layout (grid, row), columns (2, 3, 4), item (name, icon only, tile), density, tone.
templ LogoCloud(p LogoCloudProps) {
{{ vId := p.Id }}
{{ vTitle := p.Title }}
{{ vLogos := p.Logos }}
{{ vEmpty := uiutils.Def(p.Empty, "") }}
{{ vLayout := uiutils.Def(p.Layout, "grid") }}
{{ vCols := uiutils.Def(p.Cols, "4") }}
{{ vItem := uiutils.Def(p.Item, "name") }}
{{ vTone := uiutils.Def(p.Tone, "default") }}
{{ vDensity := uiutils.Def(p.Density, "default") }}
{{ vLandmarkLabel := p.LandmarkLabel }}
if uiutils.Eq(uiutils.Len(vLogos), float64(0)) {
@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Tone: vTone, Density: vDensity, Align: "center", LandmarkLabel: vLandmarkLabel}) {
@EmptyState(EmptyStateProps{Icon: "building-2", Title: vEmpty})
}
} else if uiutils.Eq(vLayout, "row") {
@LogoRibbon(LogoRibbonProps{Id: vId, Title: vTitle, Logos: vLogos, Tone: vTone, Density: vDensity, LandmarkLabel: vLandmarkLabel})
} else {
@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Tone: vTone, Density: vDensity, Align: "center", LandmarkLabel: vLandmarkLabel}) {
@compose.Grid(compose.GridProps{Cols: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vCols, "2")), "2", uiutils.Cond(uiutils.T(uiutils.Eq(vCols, "3")), "2-3", uiutils.Cond(uiutils.T(uiutils.Eq(vCols, "4")), "2-4", "3-6")))), BoxProps: box.BoxProps{Class: "gap-4", Attrs: uiutils.Attrs("data-slot", "items")}}) {
for _, vLogo := range uiutils.L(vLogos) {
@compose.Group(compose.GroupProps{Gap: "2", Align: "center", Justify: "center", BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("text-muted-foreground", uiutils.Cond(uiutils.T(uiutils.Eq(vItem, "tile")), "flex-col rounded p-4 inset-ring inset-ring-border", ""))), Attrs: uiutils.Attrs("data-slot", "item")}}) {
@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(vItem, "icon")), "sr-only", ""))}}) {
{ uiutils.Text(uiutils.Get(vLogo, "name")) }
}
}
}
}
}
}
}
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 logo-cloud{#- 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/logo-cloud.json
A heading and the names of customers or partners as Lucide glyphs with a name. Axes: layout (grid, row), columns (2, 3, 4), item (name, icon only, tile), density, tone.
Props (p): id, title, logos, empty, layout, cols, item, 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_layout = (p.layout ?? 'grid') -%}
{%- set v_cols = (p.cols ?? '4') -%}
{%- set v_item = (p.item ?? 'name') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_density = (p.density ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- if og_t(og_eq(og_len(v_logos), 0)) %}
{%- set c_1 -%}
{{ include('blocks/empty-state.html.twig', {'p': {'icon': 'building-2', 'title': v_empty}}, with_context = false) }}
{%- 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_1)}, with_context = false) }}
{%- elseif og_t(og_eq(v_layout, 'row')) %}
{{ include('blocks/logo-ribbon.html.twig', {'p': {'id': v_id, 'title': v_title, 'logos': v_logos, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}}, with_context = false) }}
{%- else %}
{%- set c_5 -%}
{%- set c_4 -%}
{%- for v_logo in og_l(v_logos) %}
{%- set c_3 -%}
{{ include('icons/LucideIcon.html.twig', {'name': og_s(og_get(v_logo, ['icon'])), 'size': 24}, with_context = false) }}
{%- set c_2 -%}
{{ 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_item, 'icon')) ? 'sr-only' : '')), 'children': c_2}, with_context = false) }}
{%- endset -%}
{{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'justify': 'center', 'class': og_s(og_cnv(['text-muted-foreground', (og_t(og_eq(v_item, 'tile')) ? 'flex-col rounded p-4 inset-ring inset-ring-border' : '')])), 'attrs': og_attrs(['data-slot', 'item']), 'children': c_3}, with_context = false) }}
{%- endfor %}
{%- endset -%}
{{ include('compose/Grid.html.twig', {'cols': og_s((og_t(og_eq(v_cols, '2')) ? '2' : (og_t(og_eq(v_cols, '3')) ? '2-3' : (og_t(og_eq(v_cols, '4')) ? '2-4' : '3-6')))), 'class': 'gap-4', 'attrs': og_attrs(['data-slot', 'items']), 'children': c_4}, with_context = false) }}
{%- 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_5)}, with_context = false) }}
{%- endif %}
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 logo-cloud{* 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/logo-cloud.json
A heading and the names of customers or partners as Lucide glyphs with a name. Axes: layout (grid, row), columns (2, 3, 4), item (name, icon only, tile), density, tone.
Props (p): id, title, logos, empty, layout, cols, item, 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_layout = ($p['layout'] ?? 'grid')}
{var $v_cols = ($p['cols'] ?? '4')}
{var $v_item = ($p['item'] ?? 'name')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_density = ($p['density'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{if og_t(og_eq(og_len($v_logos), 0))}
{capture $c_1}
{=og_include('blocks/empty-state.latte', ['p' => ['icon' => 'building-2', 'title' => $v_empty]])|noescape}
{/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_1)])|noescape}
{elseif og_t(og_eq($v_layout, 'row'))}
{=og_include('blocks/logo-ribbon.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'logos' => $v_logos, 'tone' => $v_tone, 'density' => $v_density, 'landmarkLabel' => $v_landmarkLabel]])|noescape}
{else}
{capture $c_5}
{capture $c_4}
{foreach og_l($v_logos) as $v_logo}
{capture $c_3}
{=og_include('icons/LucideIcon.latte', ['name' => og_s(og_get($v_logo, ['icon'])), 'size' => 24])|noescape}
{capture $c_2}
{=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_item, 'icon')) ? 'sr-only' : '')), 'children' => (string) $c_2])|noescape}
{/capture}
{=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'center', 'justify' => 'center', 'class' => og_s(og_cnv(['text-muted-foreground', (og_t(og_eq($v_item, 'tile')) ? 'flex-col rounded p-4 inset-ring inset-ring-border' : '')])), 'attrs' => og_attrs(['data-slot', 'item']), 'children' => (string) $c_3])|noescape}
{/foreach}
{/capture}
{=og_include('compose/Grid.latte', ['cols' => og_s((og_t(og_eq($v_cols, '2')) ? '2' : (og_t(og_eq($v_cols, '3')) ? '2-3' : (og_t(og_eq($v_cols, '4')) ? '2-4' : '3-6')))), 'class' => 'gap-4', 'attrs' => og_attrs(['data-slot', 'items']), 'children' => (string) $c_4])|noescape}
{/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_5)])|noescape}
{/if}
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 logo-cloud{#- 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/logo-cloud.json
A heading and the names of customers or partners as Lucide glyphs with a name. Axes: layout (grid, row), columns (2, 3, 4), item (name, icon only, tile), density, tone.
Props (p): id, title, logos, empty, layout, cols, item, 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_layout = og_def(p['layout'], 'grid') -%}
{%- set v_cols = og_def(p['cols'], '4') -%}
{%- set v_item = og_def(p['item'], '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) -%}
{%- if og_t(og_eq(og_len(v_logos), 0)) %}
{%- set c_1 -%}
{{ og_include('blocks/empty-state.html.j2', {'p': {'icon': 'building-2', 'title': v_empty}}) }}
{%- 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_1)}) }}
{%- elif og_t(og_eq(v_layout, 'row')) %}
{{ og_include('blocks/logo-ribbon.html.j2', {'p': {'id': v_id, 'title': v_title, 'logos': v_logos, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}}) }}
{%- else %}
{%- set c_5 -%}
{%- set c_4 -%}
{%- for v_logo in og_l(v_logos) %}
{%- set c_3 -%}
{{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': og_s(og_get(v_logo, ['icon'])), 'Size': 24}}) }}
{%- set c_2 -%}
{{ 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_item, 'icon')) else ''))}, 'children': c_2}) }}
{%- endset -%}
{{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'center', 'Justify': 'center', 'Class': og_s(og_cnv(['text-muted-foreground', ('flex-col rounded p-4 inset-ring inset-ring-border' if og_t(og_eq(v_item, 'tile')) else '')])), 'Attrs': og_attrs(['data-slot', 'item'])}, 'children': c_3}) }}
{%- endfor %}
{%- endset -%}
{{ og_include('compose/grid.html.j2', {'p': {'Cols': og_s(('2' if og_t(og_eq(v_cols, '2')) else ('2-3' if og_t(og_eq(v_cols, '3')) else ('2-4' if og_t(og_eq(v_cols, '4')) else '3-6')))), 'Class': 'gap-4', 'Attrs': og_attrs(['data-slot', 'items'])}, 'children': c_4}) }}
{%- 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_5)}) }}
{%- endif %}
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.
A heading and the names of customers or partners as Lucide glyphs with a name. Axes: layout (grid, row), columns (2, 3, 4), item (name, icon only, tile), density, tone.
| 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 |
| layout | "grid" | "row" | "grid" | |
| cols | "2" | "3" | "4" | "4" | |
| item | "name" | "icon" | "tile" | "name" | |
| tone | "default" | "muted" | "default" | |
| density | "roomy" | "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 |