Cta Proof Items
Cta Proof Items component
Install
npx ui8kit add cta-proof-itemsPulls in: box, compose, cta-proof, group, kit-box, kit-text, list, list-item, lucide-icon, stack, text, utils
Preview
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 cta-proof-items<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->
<!--
The proof of CtaProof. Shapes: logos (six names with a glyph), features (small features in two columns), stats
(three figures), rows (four icon rows), zones (delivery zones: name and areas, price and time).
-->
<script lang="ts" module>
import type { Snippet } from "svelte";
import type { CtaContent } from "../blocks/cta-proof.types";
export type CtaProofItemsProps = {
content: CtaContent;
proof?: "logos" | "features" | "stats" | "rows" | "zones";
center?: boolean;
};
</script>
<script lang="ts">
import Box from "../compose/Box.svelte";
import Group from "../compose/Group.svelte";
import List from "../compose/List.svelte";
import ListItem from "../compose/ListItem.svelte";
import LucideIcon from "../icons/LucideIcon.svelte";
import Stack from "../compose/Stack.svelte";
import Text from "../compose/Text.svelte";
import { fmtMoney } from "../utils";
let { content, proof = "stats", center = false }: CtaProofItemsProps = $props();
</script>
{#if (((proof as string) === "logos") && ((content.logos?.length ?? 0) > 0))}
<Box class="grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-6" data-slot="cta-proof">
{#each content.logos as l (l.id)}
<Group gap="2" align="center" justify="center" class="text-muted-foreground" data-slot="cta-item">
<LucideIcon name={l.icon} size={20} />
<Text size="sm" weight="semibold">
{l.name}
</Text>
</Group>
{/each}
</Box>
{/if}
{#if (((proof as string) === "features") && ((content.features?.length ?? 0) > 0))}
<Box class="grid grid-cols-1 gap-4 text-left sm:grid-cols-2" data-slot="cta-proof">
{#each content.features as f (f.id)}
<Group gap="4" align="start" class="rounded bg-card inset-ring inset-ring-border p-4" data-slot="cta-item">
<Box class="flex size-10 shrink-0 items-center justify-center rounded bg-muted">
<LucideIcon name={f.icon} size={20} />
</Box>
<Stack gap="0">
<Text size="sm" weight="semibold">
{f.title}
</Text>
<Text size="xs" class="text-muted-foreground">
{f.text}
</Text>
</Stack>
</Group>
{/each}
</Box>
{/if}
{#if (((proof as string) === "stats") && ((content.stats?.length ?? 0) > 0))}
<Box class="grid grid-cols-3 gap-4" data-slot="cta-proof">
{#each content.stats as s, i (s.id)}
{#if (i < 3)}
<Stack gap="0" class={(center ? "items-center text-center" : "")} data-slot="cta-item">
<Text size="3xl" weight="bold">
{s.value}
</Text>
<Text size="xs" class="text-muted-foreground">
{s.label}
</Text>
</Stack>
{/if}
{/each}
</Box>
{/if}
{#if (((proof as string) === "rows") && ((content.features?.length ?? 0) > 0))}
<List class="m-0 flex list-none flex-col gap-4 p-0" data-slot="cta-proof">
{#each content.features as f (f.id)}
<ListItem class="flex items-start gap-4" data-slot="cta-item">
<Box class="flex size-10 shrink-0 items-center justify-center rounded bg-muted">
<LucideIcon name={f.icon} size={20} />
</Box>
<Stack gap="0">
<Text size="sm" weight="semibold">
{f.title}
</Text>
<Text size="xs" class="text-muted-foreground">
{f.text}
</Text>
</Stack>
</ListItem>
{/each}
</List>
{/if}
{#if (((proof as string) === "zones") && ((content.zones?.length ?? 0) > 0))}
<List class="m-0 flex list-none flex-col p-0" data-slot="cta-proof">
{#each content.zones as z (z.id)}
<ListItem class="flex items-start justify-between gap-4 border-b border-border py-4" data-slot="cta-item">
<Stack gap="0" class="min-w-0">
<Text size="sm" weight="semibold">
{z.name}
</Text>
<Text size="xs" class="text-muted-foreground">
{z.area}
</Text>
</Stack>
<Stack gap="0" class="shrink-0 text-right">
<Text size="sm" weight="semibold">
{fmtMoney(z.price, z.currency)}
</Text>
<Text size="xs" class="text-muted-foreground">
{z.time}
</Text>
</Stack>
</ListItem>
{/each}
</List>
{/if}
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 cta-proof-items// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
/**
* The proof of CtaProof. Shapes: logos (six names with a glyph), features (small features in two columns), stats
* (three figures), rows (four icon rows), zones (delivery zones: name and areas, price and time).
*/
import { Fragment, type ReactNode } from "react";
import { Box, Group, List, ListItem, Stack, Text } from "../compose";
import { LucideIcon } from "../icons/LucideIcon";
import { fmtMoney } from "../utils";
import type { CtaContent } from "../blocks/cta-proof.types";
export type CtaProofItemsProps = {
content: CtaContent;
proof?: "logos" | "features" | "stats" | "rows" | "zones";
center?: boolean;
};
export function CtaProofItems({ content, proof = "stats", center = false }: CtaProofItemsProps) {
return (
<>
{(((proof as string) === "logos") && ((content.logos?.length ?? 0) > 0)) ? (
<Box className="grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-6" data-slot="cta-proof">
{(content.logos ?? []).map((l) => (
<Group key={l.id} gap="2" align="center" justify="center" className="text-muted-foreground" data-slot="cta-item">
<LucideIcon name={l.icon} size={20} />
<Text size="sm" weight="semibold">
{l.name}
</Text>
</Group>
))}
</Box>
) : null}
{(((proof as string) === "features") && ((content.features?.length ?? 0) > 0)) ? (
<Box className="grid grid-cols-1 gap-4 text-left sm:grid-cols-2" data-slot="cta-proof">
{(content.features ?? []).map((f) => (
<Group key={f.id} gap="4" align="start" className="rounded bg-card inset-ring inset-ring-border p-4" data-slot="cta-item">
<Box className="flex size-10 shrink-0 items-center justify-center rounded bg-muted">
<LucideIcon name={f.icon} size={20} />
</Box>
<Stack gap="0">
<Text size="sm" weight="semibold">
{f.title}
</Text>
<Text size="xs" className="text-muted-foreground">
{f.text}
</Text>
</Stack>
</Group>
))}
</Box>
) : null}
{(((proof as string) === "stats") && ((content.stats?.length ?? 0) > 0)) ? (
<Box className="grid grid-cols-3 gap-4" data-slot="cta-proof">
{(content.stats ?? []).map((s, i) => (
<Fragment key={s.id}>
{(i < 3) ? (
<Stack gap="0" className={(center ? "items-center text-center" : "")} data-slot="cta-item">
<Text size="3xl" weight="bold">
{s.value}
</Text>
<Text size="xs" className="text-muted-foreground">
{s.label}
</Text>
</Stack>
) : null}
</Fragment>
))}
</Box>
) : null}
{(((proof as string) === "rows") && ((content.features?.length ?? 0) > 0)) ? (
<List className="m-0 flex list-none flex-col gap-4 p-0" data-slot="cta-proof">
{(content.features ?? []).map((f) => (
<ListItem key={f.id} className="flex items-start gap-4" data-slot="cta-item">
<Box className="flex size-10 shrink-0 items-center justify-center rounded bg-muted">
<LucideIcon name={f.icon} size={20} />
</Box>
<Stack gap="0">
<Text size="sm" weight="semibold">
{f.title}
</Text>
<Text size="xs" className="text-muted-foreground">
{f.text}
</Text>
</Stack>
</ListItem>
))}
</List>
) : null}
{(((proof as string) === "zones") && ((content.zones?.length ?? 0) > 0)) ? (
<List className="m-0 flex list-none flex-col p-0" data-slot="cta-proof">
{(content.zones ?? []).map((z) => (
<ListItem key={z.id} className="flex items-start justify-between gap-4 border-b border-border py-4" data-slot="cta-item">
<Stack gap="0" className="min-w-0">
<Text size="sm" weight="semibold">
{z.name}
</Text>
<Text size="xs" className="text-muted-foreground">
{z.area}
</Text>
</Stack>
<Stack gap="0" className="shrink-0 text-right">
<Text size="sm" weight="semibold">
{fmtMoney(z.price, z.currency)}
</Text>
<Text size="xs" className="text-muted-foreground">
{z.time}
</Text>
</Stack>
</ListItem>
))}
</List>
) : null}
</>
);
}
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 cta-proof-items<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->
<!--
The proof of CtaProof. Shapes: logos (six names with a glyph), features (small features in two columns), stats
(three figures), rows (four icon rows), zones (delivery zones: name and areas, price and time).
-->
<script lang="ts">
import type { CtaContent } from "../blocks/cta-proof.types";
export type CtaProofItemsProps = {
content: CtaContent;
proof?: "logos" | "features" | "stats" | "rows" | "zones";
center?: boolean;
};
</script>
<script setup lang="ts">
import Box from "../compose/Box.vue";
import Group from "../compose/Group.vue";
import List from "../compose/List.vue";
import ListItem from "../compose/ListItem.vue";
import LucideIcon from "../icons/LucideIcon.vue";
import Stack from "../compose/Stack.vue";
import Text from "../compose/Text.vue";
import { fmtMoney } from "../utils";
const { content, proof = "stats", center = false } = defineProps<CtaProofItemsProps>();
</script>
<template>
<Box
v-if="(((proof as string) === 'logos') && ((content.logos?.length ?? 0) > 0))"
class="grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-6"
data-slot="cta-proof"
>
<Group
v-for="l in content.logos"
:key="l.id"
gap="2"
align="center"
justify="center"
class="text-muted-foreground"
data-slot="cta-item"
>
<LucideIcon :name="l.icon" :size="20" />
<Text size="sm" weight="semibold">
{{ l.name }}
</Text>
</Group>
</Box>
<Box
v-if="(((proof as string) === 'features') && ((content.features?.length ?? 0) > 0))"
class="grid grid-cols-1 gap-4 text-left sm:grid-cols-2"
data-slot="cta-proof"
>
<Group
v-for="f in content.features"
:key="f.id"
gap="4"
align="start"
class="rounded bg-card inset-ring inset-ring-border p-4"
data-slot="cta-item"
>
<Box class="flex size-10 shrink-0 items-center justify-center rounded bg-muted">
<LucideIcon :name="f.icon" :size="20" />
</Box>
<Stack gap="0">
<Text size="sm" weight="semibold">
{{ f.title }}
</Text>
<Text size="xs" class="text-muted-foreground">
{{ f.text }}
</Text>
</Stack>
</Group>
</Box>
<Box
v-if="(((proof as string) === 'stats') && ((content.stats?.length ?? 0) > 0))"
class="grid grid-cols-3 gap-4"
data-slot="cta-proof"
>
<template v-for="(s, i) in content.stats" :key="s.id">
<Stack v-if="(i < 3)" gap="0" :class="(center ? 'items-center text-center' : '')" data-slot="cta-item">
<Text size="3xl" weight="bold">
{{ s.value }}
</Text>
<Text size="xs" class="text-muted-foreground">
{{ s.label }}
</Text>
</Stack>
</template>
</Box>
<List
v-if="(((proof as string) === 'rows') && ((content.features?.length ?? 0) > 0))"
class="m-0 flex list-none flex-col gap-4 p-0"
data-slot="cta-proof"
>
<ListItem v-for="f in content.features" :key="f.id" class="flex items-start gap-4" data-slot="cta-item">
<Box class="flex size-10 shrink-0 items-center justify-center rounded bg-muted">
<LucideIcon :name="f.icon" :size="20" />
</Box>
<Stack gap="0">
<Text size="sm" weight="semibold">
{{ f.title }}
</Text>
<Text size="xs" class="text-muted-foreground">
{{ f.text }}
</Text>
</Stack>
</ListItem>
</List>
<List
v-if="(((proof as string) === 'zones') && ((content.zones?.length ?? 0) > 0))"
class="m-0 flex list-none flex-col p-0"
data-slot="cta-proof"
>
<ListItem
v-for="z in content.zones"
:key="z.id"
class="flex items-start justify-between gap-4 border-b border-border py-4"
data-slot="cta-item"
>
<Stack gap="0" class="min-w-0">
<Text size="sm" weight="semibold">
{{ z.name }}
</Text>
<Text size="xs" class="text-muted-foreground">
{{ z.area }}
</Text>
</Stack>
<Stack gap="0" class="shrink-0 text-right">
<Text size="sm" weight="semibold">
{{ fmtMoney(z.price, z.currency) }}
</Text>
<Text size="xs" class="text-muted-foreground">
{{ z.time }}
</Text>
</Stack>
</ListItem>
</List>
</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 cta-proof-items// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
/**
* The proof of CtaProof. Shapes: logos (six names with a glyph), features (small features in two columns), stats
* (three figures), rows (four icon rows), zones (delivery zones: name and areas, price and time).
*/
import { For, type JSX } from "solid-js";
import { Box, Group, List, ListItem, Stack, Text } from "../compose";
import { LucideIcon } from "../icons/LucideIcon";
import { fmtMoney } from "../utils";
import type { CtaContent } from "../blocks/cta-proof.types";
export type CtaProofItemsProps = {
content: CtaContent;
proof?: "logos" | "features" | "stats" | "rows" | "zones";
center?: boolean;
};
export function CtaProofItems({ content, proof = "stats", center = false }: CtaProofItemsProps) {
return (
<>
{(((proof as string) === "logos") && ((content.logos?.length ?? 0) > 0)) ? (
<Box class="grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-6" data-slot="cta-proof">
<For each={content.logos ?? []}>{(l) => (
<Group gap="2" align="center" justify="center" class="text-muted-foreground" data-slot="cta-item">
<LucideIcon name={l.icon} size={20} />
<Text size="sm" weight="semibold">
{l.name}
</Text>
</Group>
)}</For>
</Box>
) : null}
{(((proof as string) === "features") && ((content.features?.length ?? 0) > 0)) ? (
<Box class="grid grid-cols-1 gap-4 text-left sm:grid-cols-2" data-slot="cta-proof">
<For each={content.features ?? []}>{(f) => (
<Group gap="4" align="start" class="rounded bg-card inset-ring inset-ring-border p-4" data-slot="cta-item">
<Box class="flex size-10 shrink-0 items-center justify-center rounded bg-muted">
<LucideIcon name={f.icon} size={20} />
</Box>
<Stack gap="0">
<Text size="sm" weight="semibold">
{f.title}
</Text>
<Text size="xs" class="text-muted-foreground">
{f.text}
</Text>
</Stack>
</Group>
)}</For>
</Box>
) : null}
{(((proof as string) === "stats") && ((content.stats?.length ?? 0) > 0)) ? (
<Box class="grid grid-cols-3 gap-4" data-slot="cta-proof">
<For each={content.stats ?? []}>{(s, iOf) => { const i = iOf(); return (
<>
{(i < 3) ? (
<Stack gap="0" class={(center ? "items-center text-center" : "")} data-slot="cta-item">
<Text size="3xl" weight="bold">
{s.value}
</Text>
<Text size="xs" class="text-muted-foreground">
{s.label}
</Text>
</Stack>
) : null}
</>
); }}</For>
</Box>
) : null}
{(((proof as string) === "rows") && ((content.features?.length ?? 0) > 0)) ? (
<List class="m-0 flex list-none flex-col gap-4 p-0" data-slot="cta-proof">
<For each={content.features ?? []}>{(f) => (
<ListItem class="flex items-start gap-4" data-slot="cta-item">
<Box class="flex size-10 shrink-0 items-center justify-center rounded bg-muted">
<LucideIcon name={f.icon} size={20} />
</Box>
<Stack gap="0">
<Text size="sm" weight="semibold">
{f.title}
</Text>
<Text size="xs" class="text-muted-foreground">
{f.text}
</Text>
</Stack>
</ListItem>
)}</For>
</List>
) : null}
{(((proof as string) === "zones") && ((content.zones?.length ?? 0) > 0)) ? (
<List class="m-0 flex list-none flex-col p-0" data-slot="cta-proof">
<For each={content.zones ?? []}>{(z) => (
<ListItem class="flex items-start justify-between gap-4 border-b border-border py-4" data-slot="cta-item">
<Stack gap="0" class="min-w-0">
<Text size="sm" weight="semibold">
{z.name}
</Text>
<Text size="xs" class="text-muted-foreground">
{z.area}
</Text>
</Stack>
<Stack gap="0" class="shrink-0 text-right">
<Text size="sm" weight="semibold">
{fmtMoney(z.price, z.currency)}
</Text>
<Text size="xs" class="text-muted-foreground">
{z.time}
</Text>
</Stack>
</ListItem>
)}</For>
</List>
) : null}
</>
);
}
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 cta-proof-items// 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/cta-proof-items.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"
)
// CtaProofItemsProps are the props of CtaProofItems; the values are the JSON shapes of the TypeScript props.
type CtaProofItemsProps struct {
Content any `json:"content"`
Proof any `json:"proof"`
Center any `json:"center"`
}
// The proof of CtaProof. Shapes: logos (six names with a glyph), features (small features in two columns), stats (three figures), rows (four icon rows), zones (delivery zones: name and areas, price and time).
templ CtaProofItems(p CtaProofItemsProps) {
{{ vContent := p.Content }}
{{ vProof := uiutils.Def(p.Proof, "stats") }}
{{ vCenter := uiutils.Def(p.Center, false) }}
if uiutils.T(uiutils.And(uiutils.Eq(vProof, "logos"), uiutils.Gt(uiutils.Len(uiutils.Get(vContent, "logos")), float64(0)))) {
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: "grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-6", Attrs: uiutils.Attrs("data-slot", "cta-proof")}}) {
for _, vL := range uiutils.L(uiutils.Get(vContent, "logos")) {
@compose.Group(compose.GroupProps{Gap: "2", Align: "center", Justify: "center", BoxProps: box.BoxProps{Class: "text-muted-foreground", Attrs: uiutils.Attrs("data-slot", "cta-item")}}) {
@icons.LucideIcon(icons.LucideIconProps{Name: uiutils.S(uiutils.Get(vL, "icon")), Size: 20})
@compose.Text(compose.TextProps{Size: "sm", Weight: "semibold", TextProps: text.TextProps{}}) {
{ uiutils.Text(uiutils.Get(vL, "name")) }
}
}
}
}
}
if uiutils.T(uiutils.And(uiutils.Eq(vProof, "features"), uiutils.Gt(uiutils.Len(uiutils.Get(vContent, "features")), float64(0)))) {
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: "grid grid-cols-1 gap-4 text-left sm:grid-cols-2", Attrs: uiutils.Attrs("data-slot", "cta-proof")}}) {
for _, vF := range uiutils.L(uiutils.Get(vContent, "features")) {
@compose.Group(compose.GroupProps{Gap: "4", Align: "start", BoxProps: box.BoxProps{Class: "rounded bg-card inset-ring inset-ring-border p-4", Attrs: uiutils.Attrs("data-slot", "cta-item")}}) {
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: "flex size-10 shrink-0 items-center justify-center rounded bg-muted"}}) {
@icons.LucideIcon(icons.LucideIconProps{Name: uiutils.S(uiutils.Get(vF, "icon")), Size: 20})
}
@compose.Stack(compose.StackProps{Gap: "0", BoxProps: box.BoxProps{}}) {
@compose.Text(compose.TextProps{Size: "sm", Weight: "semibold", TextProps: text.TextProps{}}) {
{ uiutils.Text(uiutils.Get(vF, "title")) }
}
@compose.Text(compose.TextProps{Size: "xs", TextProps: text.TextProps{Class: "text-muted-foreground"}}) {
{ uiutils.Text(uiutils.Get(vF, "text")) }
}
}
}
}
}
}
if uiutils.T(uiutils.And(uiutils.Eq(vProof, "stats"), uiutils.Gt(uiutils.Len(uiutils.Get(vContent, "stats")), float64(0)))) {
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: "grid grid-cols-3 gap-4", Attrs: uiutils.Attrs("data-slot", "cta-proof")}}) {
for vI, vS := range uiutils.L(uiutils.Get(vContent, "stats")) {
if uiutils.Lt(float64(vI), float64(3)) {
@compose.Stack(compose.StackProps{Gap: "0", BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cond(uiutils.T(vCenter), "items-center text-center", "")), Attrs: uiutils.Attrs("data-slot", "cta-item")}}) {
@compose.Text(compose.TextProps{Size: "3xl", Weight: "bold", TextProps: text.TextProps{}}) {
{ uiutils.Text(uiutils.Get(vS, "value")) }
}
@compose.Text(compose.TextProps{Size: "xs", TextProps: text.TextProps{Class: "text-muted-foreground"}}) {
{ uiutils.Text(uiutils.Get(vS, "label")) }
}
}
}
}
}
}
if uiutils.T(uiutils.And(uiutils.Eq(vProof, "rows"), uiutils.Gt(uiutils.Len(uiutils.Get(vContent, "features")), float64(0)))) {
@compose.List(compose.ListProps{BoxProps: box.BoxProps{Class: "m-0 flex list-none flex-col gap-4 p-0", Attrs: uiutils.Attrs("data-slot", "cta-proof")}}) {
for _, vF := range uiutils.L(uiutils.Get(vContent, "features")) {
@compose.ListItem(compose.ListItemProps{BoxProps: box.BoxProps{Class: "flex items-start gap-4", Attrs: uiutils.Attrs("data-slot", "cta-item")}}) {
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: "flex size-10 shrink-0 items-center justify-center rounded bg-muted"}}) {
@icons.LucideIcon(icons.LucideIconProps{Name: uiutils.S(uiutils.Get(vF, "icon")), Size: 20})
}
@compose.Stack(compose.StackProps{Gap: "0", BoxProps: box.BoxProps{}}) {
@compose.Text(compose.TextProps{Size: "sm", Weight: "semibold", TextProps: text.TextProps{}}) {
{ uiutils.Text(uiutils.Get(vF, "title")) }
}
@compose.Text(compose.TextProps{Size: "xs", TextProps: text.TextProps{Class: "text-muted-foreground"}}) {
{ uiutils.Text(uiutils.Get(vF, "text")) }
}
}
}
}
}
}
if uiutils.T(uiutils.And(uiutils.Eq(vProof, "zones"), uiutils.Gt(uiutils.Len(uiutils.Get(vContent, "zones")), float64(0)))) {
@compose.List(compose.ListProps{BoxProps: box.BoxProps{Class: "m-0 flex list-none flex-col p-0", Attrs: uiutils.Attrs("data-slot", "cta-proof")}}) {
for _, vZ := range uiutils.L(uiutils.Get(vContent, "zones")) {
@compose.ListItem(compose.ListItemProps{BoxProps: box.BoxProps{Class: "flex items-start justify-between gap-4 border-b border-border py-4", Attrs: uiutils.Attrs("data-slot", "cta-item")}}) {
@compose.Stack(compose.StackProps{Gap: "0", BoxProps: box.BoxProps{Class: "min-w-0"}}) {
@compose.Text(compose.TextProps{Size: "sm", Weight: "semibold", TextProps: text.TextProps{}}) {
{ uiutils.Text(uiutils.Get(vZ, "name")) }
}
@compose.Text(compose.TextProps{Size: "xs", TextProps: text.TextProps{Class: "text-muted-foreground"}}) {
{ uiutils.Text(uiutils.Get(vZ, "area")) }
}
}
@compose.Stack(compose.StackProps{Gap: "0", BoxProps: box.BoxProps{Class: "shrink-0 text-right"}}) {
@compose.Text(compose.TextProps{Size: "sm", Weight: "semibold", TextProps: text.TextProps{}}) {
{ uiutils.Text(uiutils.Money(uiutils.Get(vZ, "price"), uiutils.Get(vZ, "currency"))) }
}
@compose.Text(compose.TextProps{Size: "xs", TextProps: text.TextProps{Class: "text-muted-foreground"}}) {
{ uiutils.Text(uiutils.Get(vZ, "time")) }
}
}
}
}
}
}
}
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 cta-proof-items{#- 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/cta-proof-items.json
The proof of CtaProof. Shapes: logos (six names with a glyph), features (small features in two columns), stats (three figures), rows (four icon rows), zones (delivery zones: name and areas, price and time).
Props (p): content, proof, center. -#}
{%- set v_content = (p.content ?? null) -%}
{%- set v_proof = (p.proof ?? 'stats') -%}
{%- set v_center = (p.center ?? false) -%}
{%- if og_t(og_and([og_eq(v_proof, 'logos'), og_gt(og_len(og_get(v_content, ['logos'])), 0)])) %}
{%- set c_3 -%}
{%- for v_l in og_l(og_get(v_content, ['logos'])) %}
{%- set c_2 -%}
{{ include('icons/LucideIcon.html.twig', {'name': og_s(og_get(v_l, ['icon'])), 'size': 20}, with_context = false) }}
{%- set c_1 -%}
{{ og_text(og_get(v_l, ['name'])) }}
{%- endset -%}
{{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_1}, with_context = false) }}
{%- endset -%}
{{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'justify': 'center', 'class': 'text-muted-foreground', 'attrs': og_attrs(['data-slot', 'cta-item']), 'children': c_2}, with_context = false) }}
{%- endfor %}
{%- endset -%}
{{ include('compose/Box.html.twig', {'class': 'grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-6', 'attrs': og_attrs(['data-slot', 'cta-proof']), 'children': c_3}, with_context = false) }}
{%- endif %}
{%- if og_t(og_and([og_eq(v_proof, 'features'), og_gt(og_len(og_get(v_content, ['features'])), 0)])) %}
{%- set c_9 -%}
{%- for v_f in og_l(og_get(v_content, ['features'])) %}
{%- set c_8 -%}
{%- set c_4 -%}
{{ include('icons/LucideIcon.html.twig', {'name': og_s(og_get(v_f, ['icon'])), 'size': 20}, with_context = false) }}
{%- endset -%}
{{ include('compose/Box.html.twig', {'class': 'flex size-10 shrink-0 items-center justify-center rounded bg-muted', 'children': c_4}, with_context = false) }}
{%- set c_7 -%}
{%- set c_5 -%}
{{ og_text(og_get(v_f, ['title'])) }}
{%- endset -%}
{{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_5}, with_context = false) }}
{%- set c_6 -%}
{{ og_text(og_get(v_f, ['text'])) }}
{%- endset -%}
{{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_6}, with_context = false) }}
{%- endset -%}
{{ include('compose/Stack.html.twig', {'gap': '0', 'children': c_7}, with_context = false) }}
{%- endset -%}
{{ include('compose/Group.html.twig', {'gap': '4', 'align': 'start', 'class': 'rounded bg-card inset-ring inset-ring-border p-4', 'attrs': og_attrs(['data-slot', 'cta-item']), 'children': c_8}, with_context = false) }}
{%- endfor %}
{%- endset -%}
{{ include('compose/Box.html.twig', {'class': 'grid grid-cols-1 gap-4 text-left sm:grid-cols-2', 'attrs': og_attrs(['data-slot', 'cta-proof']), 'children': c_9}, with_context = false) }}
{%- endif %}
{%- if og_t(og_and([og_eq(v_proof, 'stats'), og_gt(og_len(og_get(v_content, ['stats'])), 0)])) %}
{%- set c_13 -%}
{%- for v_s in og_l(og_get(v_content, ['stats'])) %}
{%- set v_i = loop.index0 -%}
{%- if og_t(og_lt(v_i, 3)) %}
{%- set c_12 -%}
{%- set c_10 -%}
{{ og_text(og_get(v_s, ['value'])) }}
{%- endset -%}
{{ include('compose/Text.html.twig', {'size': '3xl', 'weight': 'bold', 'children': c_10}, with_context = false) }}
{%- set c_11 -%}
{{ og_text(og_get(v_s, ['label'])) }}
{%- endset -%}
{{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_11}, with_context = false) }}
{%- endset -%}
{{ include('compose/Stack.html.twig', {'gap': '0', 'class': og_s((og_t(v_center) ? 'items-center text-center' : '')), 'attrs': og_attrs(['data-slot', 'cta-item']), 'children': c_12}, with_context = false) }}
{%- endif %}
{%- endfor %}
{%- endset -%}
{{ include('compose/Box.html.twig', {'class': 'grid grid-cols-3 gap-4', 'attrs': og_attrs(['data-slot', 'cta-proof']), 'children': c_13}, with_context = false) }}
{%- endif %}
{%- if og_t(og_and([og_eq(v_proof, 'rows'), og_gt(og_len(og_get(v_content, ['features'])), 0)])) %}
{%- set c_19 -%}
{%- for v_f in og_l(og_get(v_content, ['features'])) %}
{%- set c_18 -%}
{%- set c_14 -%}
{{ include('icons/LucideIcon.html.twig', {'name': og_s(og_get(v_f, ['icon'])), 'size': 20}, with_context = false) }}
{%- endset -%}
{{ include('compose/Box.html.twig', {'class': 'flex size-10 shrink-0 items-center justify-center rounded bg-muted', 'children': c_14}, with_context = false) }}
{%- set c_17 -%}
{%- set c_15 -%}
{{ og_text(og_get(v_f, ['title'])) }}
{%- endset -%}
{{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_15}, with_context = false) }}
{%- set c_16 -%}
{{ og_text(og_get(v_f, ['text'])) }}
{%- endset -%}
{{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_16}, with_context = false) }}
{%- endset -%}
{{ include('compose/Stack.html.twig', {'gap': '0', 'children': c_17}, with_context = false) }}
{%- endset -%}
{{ include('compose/ListItem.html.twig', {'class': 'flex items-start gap-4', 'attrs': og_attrs(['data-slot', 'cta-item']), 'children': c_18}, with_context = false) }}
{%- endfor %}
{%- endset -%}
{{ include('compose/List.html.twig', {'class': 'm-0 flex list-none flex-col gap-4 p-0', 'attrs': og_attrs(['data-slot', 'cta-proof']), 'children': c_19}, with_context = false) }}
{%- endif %}
{%- if og_t(og_and([og_eq(v_proof, 'zones'), og_gt(og_len(og_get(v_content, ['zones'])), 0)])) %}
{%- set c_27 -%}
{%- for v_z in og_l(og_get(v_content, ['zones'])) %}
{%- set c_26 -%}
{%- set c_22 -%}
{%- set c_20 -%}
{{ og_text(og_get(v_z, ['name'])) }}
{%- endset -%}
{{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_20}, with_context = false) }}
{%- set c_21 -%}
{{ og_text(og_get(v_z, ['area'])) }}
{%- endset -%}
{{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_21}, with_context = false) }}
{%- endset -%}
{{ include('compose/Stack.html.twig', {'gap': '0', 'class': 'min-w-0', 'children': c_22}, with_context = false) }}
{%- set c_25 -%}
{%- set c_23 -%}
{{ og_text(og_money(og_get(v_z, ['price']), og_get(v_z, ['currency']))) }}
{%- endset -%}
{{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_23}, with_context = false) }}
{%- set c_24 -%}
{{ og_text(og_get(v_z, ['time'])) }}
{%- endset -%}
{{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_24}, with_context = false) }}
{%- endset -%}
{{ include('compose/Stack.html.twig', {'gap': '0', 'class': 'shrink-0 text-right', 'children': c_25}, with_context = false) }}
{%- endset -%}
{{ include('compose/ListItem.html.twig', {'class': 'flex items-start justify-between gap-4 border-b border-border py-4', 'attrs': og_attrs(['data-slot', 'cta-item']), 'children': c_26}, with_context = false) }}
{%- endfor %}
{%- endset -%}
{{ include('compose/List.html.twig', {'class': 'm-0 flex list-none flex-col p-0', 'attrs': og_attrs(['data-slot', 'cta-proof']), 'children': c_27}, 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 cta-proof-items{* 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/cta-proof-items.json
The proof of CtaProof. Shapes: logos (six names with a glyph), features (small features in two columns), stats (three figures), rows (four icon rows), zones (delivery zones: name and areas, price and time).
Props (p): content, proof, center. *}
{var $v_content = ($p['content'] ?? null)}
{var $v_proof = ($p['proof'] ?? 'stats')}
{var $v_center = ($p['center'] ?? false)}
{if og_t(og_and([og_eq($v_proof, 'logos'), og_gt(og_len(og_get($v_content, ['logos'])), 0)]))}
{capture $c_3}
{foreach og_l(og_get($v_content, ['logos'])) as $v_l}
{capture $c_2}
{=og_include('icons/LucideIcon.latte', ['name' => og_s(og_get($v_l, ['icon'])), 'size' => 20])|noescape}
{capture $c_1}
{=og_text(og_get($v_l, ['name']))}
{/capture}
{=og_include('compose/Text.latte', ['size' => 'sm', 'weight' => 'semibold', 'children' => (string) $c_1])|noescape}
{/capture}
{=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'center', 'justify' => 'center', 'class' => 'text-muted-foreground', 'attrs' => og_attrs(['data-slot', 'cta-item']), 'children' => (string) $c_2])|noescape}
{/foreach}
{/capture}
{=og_include('compose/Box.latte', ['class' => 'grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-6', 'attrs' => og_attrs(['data-slot', 'cta-proof']), 'children' => (string) $c_3])|noescape}
{/if}
{if og_t(og_and([og_eq($v_proof, 'features'), og_gt(og_len(og_get($v_content, ['features'])), 0)]))}
{capture $c_9}
{foreach og_l(og_get($v_content, ['features'])) as $v_f}
{capture $c_8}
{capture $c_4}
{=og_include('icons/LucideIcon.latte', ['name' => og_s(og_get($v_f, ['icon'])), 'size' => 20])|noescape}
{/capture}
{=og_include('compose/Box.latte', ['class' => 'flex size-10 shrink-0 items-center justify-center rounded bg-muted', 'children' => (string) $c_4])|noescape}
{capture $c_7}
{capture $c_5}
{=og_text(og_get($v_f, ['title']))}
{/capture}
{=og_include('compose/Text.latte', ['size' => 'sm', 'weight' => 'semibold', 'children' => (string) $c_5])|noescape}
{capture $c_6}
{=og_text(og_get($v_f, ['text']))}
{/capture}
{=og_include('compose/Text.latte', ['size' => 'xs', 'class' => 'text-muted-foreground', 'children' => (string) $c_6])|noescape}
{/capture}
{=og_include('compose/Stack.latte', ['gap' => '0', 'children' => (string) $c_7])|noescape}
{/capture}
{=og_include('compose/Group.latte', ['gap' => '4', 'align' => 'start', 'class' => 'rounded bg-card inset-ring inset-ring-border p-4', 'attrs' => og_attrs(['data-slot', 'cta-item']), 'children' => (string) $c_8])|noescape}
{/foreach}
{/capture}
{=og_include('compose/Box.latte', ['class' => 'grid grid-cols-1 gap-4 text-left sm:grid-cols-2', 'attrs' => og_attrs(['data-slot', 'cta-proof']), 'children' => (string) $c_9])|noescape}
{/if}
{if og_t(og_and([og_eq($v_proof, 'stats'), og_gt(og_len(og_get($v_content, ['stats'])), 0)]))}
{capture $c_13}
{foreach og_l(og_get($v_content, ['stats'])) as $v_s}
{var $v_i = $iterator->counter0}
{if og_t(og_lt($v_i, 3))}
{capture $c_12}
{capture $c_10}
{=og_text(og_get($v_s, ['value']))}
{/capture}
{=og_include('compose/Text.latte', ['size' => '3xl', 'weight' => 'bold', 'children' => (string) $c_10])|noescape}
{capture $c_11}
{=og_text(og_get($v_s, ['label']))}
{/capture}
{=og_include('compose/Text.latte', ['size' => 'xs', 'class' => 'text-muted-foreground', 'children' => (string) $c_11])|noescape}
{/capture}
{=og_include('compose/Stack.latte', ['gap' => '0', 'class' => og_s((og_t($v_center) ? 'items-center text-center' : '')), 'attrs' => og_attrs(['data-slot', 'cta-item']), 'children' => (string) $c_12])|noescape}
{/if}
{/foreach}
{/capture}
{=og_include('compose/Box.latte', ['class' => 'grid grid-cols-3 gap-4', 'attrs' => og_attrs(['data-slot', 'cta-proof']), 'children' => (string) $c_13])|noescape}
{/if}
{if og_t(og_and([og_eq($v_proof, 'rows'), og_gt(og_len(og_get($v_content, ['features'])), 0)]))}
{capture $c_19}
{foreach og_l(og_get($v_content, ['features'])) as $v_f}
{capture $c_18}
{capture $c_14}
{=og_include('icons/LucideIcon.latte', ['name' => og_s(og_get($v_f, ['icon'])), 'size' => 20])|noescape}
{/capture}
{=og_include('compose/Box.latte', ['class' => 'flex size-10 shrink-0 items-center justify-center rounded bg-muted', 'children' => (string) $c_14])|noescape}
{capture $c_17}
{capture $c_15}
{=og_text(og_get($v_f, ['title']))}
{/capture}
{=og_include('compose/Text.latte', ['size' => 'sm', 'weight' => 'semibold', 'children' => (string) $c_15])|noescape}
{capture $c_16}
{=og_text(og_get($v_f, ['text']))}
{/capture}
{=og_include('compose/Text.latte', ['size' => 'xs', 'class' => 'text-muted-foreground', 'children' => (string) $c_16])|noescape}
{/capture}
{=og_include('compose/Stack.latte', ['gap' => '0', 'children' => (string) $c_17])|noescape}
{/capture}
{=og_include('compose/ListItem.latte', ['class' => 'flex items-start gap-4', 'attrs' => og_attrs(['data-slot', 'cta-item']), 'children' => (string) $c_18])|noescape}
{/foreach}
{/capture}
{=og_include('compose/List.latte', ['class' => 'm-0 flex list-none flex-col gap-4 p-0', 'attrs' => og_attrs(['data-slot', 'cta-proof']), 'children' => (string) $c_19])|noescape}
{/if}
{if og_t(og_and([og_eq($v_proof, 'zones'), og_gt(og_len(og_get($v_content, ['zones'])), 0)]))}
{capture $c_27}
{foreach og_l(og_get($v_content, ['zones'])) as $v_z}
{capture $c_26}
{capture $c_22}
{capture $c_20}
{=og_text(og_get($v_z, ['name']))}
{/capture}
{=og_include('compose/Text.latte', ['size' => 'sm', 'weight' => 'semibold', 'children' => (string) $c_20])|noescape}
{capture $c_21}
{=og_text(og_get($v_z, ['area']))}
{/capture}
{=og_include('compose/Text.latte', ['size' => 'xs', 'class' => 'text-muted-foreground', 'children' => (string) $c_21])|noescape}
{/capture}
{=og_include('compose/Stack.latte', ['gap' => '0', 'class' => 'min-w-0', 'children' => (string) $c_22])|noescape}
{capture $c_25}
{capture $c_23}
{=og_text(og_money(og_get($v_z, ['price']), og_get($v_z, ['currency'])))}
{/capture}
{=og_include('compose/Text.latte', ['size' => 'sm', 'weight' => 'semibold', 'children' => (string) $c_23])|noescape}
{capture $c_24}
{=og_text(og_get($v_z, ['time']))}
{/capture}
{=og_include('compose/Text.latte', ['size' => 'xs', 'class' => 'text-muted-foreground', 'children' => (string) $c_24])|noescape}
{/capture}
{=og_include('compose/Stack.latte', ['gap' => '0', 'class' => 'shrink-0 text-right', 'children' => (string) $c_25])|noescape}
{/capture}
{=og_include('compose/ListItem.latte', ['class' => 'flex items-start justify-between gap-4 border-b border-border py-4', 'attrs' => og_attrs(['data-slot', 'cta-item']), 'children' => (string) $c_26])|noescape}
{/foreach}
{/capture}
{=og_include('compose/List.latte', ['class' => 'm-0 flex list-none flex-col p-0', 'attrs' => og_attrs(['data-slot', 'cta-proof']), 'children' => (string) $c_27])|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 cta-proof-items{#- 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/cta-proof-items.json
The proof of CtaProof. Shapes: logos (six names with a glyph), features (small features in two columns), stats (three figures), rows (four icon rows), zones (delivery zones: name and areas, price and time).
Props (p): content, proof, center. -#}
{%- set v_content = og_def(p['content'], none) -%}
{%- set v_proof = og_def(p['proof'], 'stats') -%}
{%- set v_center = og_def(p['center'], false) -%}
{%- if og_t(og_and([og_eq(v_proof, 'logos'), og_gt(og_len(og_get(v_content, ['logos'])), 0)])) %}
{%- set c_3 -%}
{%- for v_l in og_l(og_get(v_content, ['logos'])) %}
{%- set c_2 -%}
{{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': og_s(og_get(v_l, ['icon'])), 'Size': 20}}) }}
{%- set c_1 -%}
{{ og_text(og_get(v_l, ['name'])) }}
{%- endset -%}
{{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_1}) }}
{%- endset -%}
{{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'center', 'Justify': 'center', 'Class': 'text-muted-foreground', 'Attrs': og_attrs(['data-slot', 'cta-item'])}, 'children': c_2}) }}
{%- endfor %}
{%- endset -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': 'grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-6', 'Attrs': og_attrs(['data-slot', 'cta-proof'])}, 'children': c_3}) }}
{%- endif %}
{%- if og_t(og_and([og_eq(v_proof, 'features'), og_gt(og_len(og_get(v_content, ['features'])), 0)])) %}
{%- set c_9 -%}
{%- for v_f in og_l(og_get(v_content, ['features'])) %}
{%- set c_8 -%}
{%- set c_4 -%}
{{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': og_s(og_get(v_f, ['icon'])), 'Size': 20}}) }}
{%- endset -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': 'flex size-10 shrink-0 items-center justify-center rounded bg-muted'}, 'children': c_4}) }}
{%- set c_7 -%}
{%- set c_5 -%}
{{ og_text(og_get(v_f, ['title'])) }}
{%- endset -%}
{{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_5}) }}
{%- set c_6 -%}
{{ og_text(og_get(v_f, ['text'])) }}
{%- endset -%}
{{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_6}) }}
{%- endset -%}
{{ og_include('compose/stack.html.j2', {'p': {'Gap': '0'}, 'children': c_7}) }}
{%- endset -%}
{{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Align': 'start', 'Class': 'rounded bg-card inset-ring inset-ring-border p-4', 'Attrs': og_attrs(['data-slot', 'cta-item'])}, 'children': c_8}) }}
{%- endfor %}
{%- endset -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': 'grid grid-cols-1 gap-4 text-left sm:grid-cols-2', 'Attrs': og_attrs(['data-slot', 'cta-proof'])}, 'children': c_9}) }}
{%- endif %}
{%- if og_t(og_and([og_eq(v_proof, 'stats'), og_gt(og_len(og_get(v_content, ['stats'])), 0)])) %}
{%- set c_13 -%}
{%- for v_s in og_l(og_get(v_content, ['stats'])) %}
{%- set v_i = loop.index0 -%}
{%- if og_t(og_lt(v_i, 3)) %}
{%- set c_12 -%}
{%- set c_10 -%}
{{ og_text(og_get(v_s, ['value'])) }}
{%- endset -%}
{{ og_include('compose/text.html.j2', {'p': {'Size': '3xl', 'Weight': 'bold'}, 'children': c_10}) }}
{%- set c_11 -%}
{{ og_text(og_get(v_s, ['label'])) }}
{%- endset -%}
{{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_11}) }}
{%- endset -%}
{{ og_include('compose/stack.html.j2', {'p': {'Gap': '0', 'Class': og_s(('items-center text-center' if og_t(v_center) else '')), 'Attrs': og_attrs(['data-slot', 'cta-item'])}, 'children': c_12}) }}
{%- endif %}
{%- endfor %}
{%- endset -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': 'grid grid-cols-3 gap-4', 'Attrs': og_attrs(['data-slot', 'cta-proof'])}, 'children': c_13}) }}
{%- endif %}
{%- if og_t(og_and([og_eq(v_proof, 'rows'), og_gt(og_len(og_get(v_content, ['features'])), 0)])) %}
{%- set c_19 -%}
{%- for v_f in og_l(og_get(v_content, ['features'])) %}
{%- set c_18 -%}
{%- set c_14 -%}
{{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': og_s(og_get(v_f, ['icon'])), 'Size': 20}}) }}
{%- endset -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': 'flex size-10 shrink-0 items-center justify-center rounded bg-muted'}, 'children': c_14}) }}
{%- set c_17 -%}
{%- set c_15 -%}
{{ og_text(og_get(v_f, ['title'])) }}
{%- endset -%}
{{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_15}) }}
{%- set c_16 -%}
{{ og_text(og_get(v_f, ['text'])) }}
{%- endset -%}
{{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_16}) }}
{%- endset -%}
{{ og_include('compose/stack.html.j2', {'p': {'Gap': '0'}, 'children': c_17}) }}
{%- endset -%}
{{ og_include('compose/list-item.html.j2', {'p': {'Class': 'flex items-start gap-4', 'Attrs': og_attrs(['data-slot', 'cta-item'])}, 'children': c_18}) }}
{%- endfor %}
{%- endset -%}
{{ og_include('compose/list.html.j2', {'p': {'Class': 'm-0 flex list-none flex-col gap-4 p-0', 'Attrs': og_attrs(['data-slot', 'cta-proof'])}, 'children': c_19}) }}
{%- endif %}
{%- if og_t(og_and([og_eq(v_proof, 'zones'), og_gt(og_len(og_get(v_content, ['zones'])), 0)])) %}
{%- set c_27 -%}
{%- for v_z in og_l(og_get(v_content, ['zones'])) %}
{%- set c_26 -%}
{%- set c_22 -%}
{%- set c_20 -%}
{{ og_text(og_get(v_z, ['name'])) }}
{%- endset -%}
{{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_20}) }}
{%- set c_21 -%}
{{ og_text(og_get(v_z, ['area'])) }}
{%- endset -%}
{{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_21}) }}
{%- endset -%}
{{ og_include('compose/stack.html.j2', {'p': {'Gap': '0', 'Class': 'min-w-0'}, 'children': c_22}) }}
{%- set c_25 -%}
{%- set c_23 -%}
{{ og_text(og_money(og_get(v_z, ['price']), og_get(v_z, ['currency']))) }}
{%- endset -%}
{{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_23}) }}
{%- set c_24 -%}
{{ og_text(og_get(v_z, ['time'])) }}
{%- endset -%}
{{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_24}) }}
{%- endset -%}
{{ og_include('compose/stack.html.j2', {'p': {'Gap': '0', 'Class': 'shrink-0 text-right'}, 'children': c_25}) }}
{%- endset -%}
{{ og_include('compose/list-item.html.j2', {'p': {'Class': 'flex items-start justify-between gap-4 border-b border-border py-4', 'Attrs': og_attrs(['data-slot', 'cta-item'])}, 'children': c_26}) }}
{%- endfor %}
{%- endset -%}
{{ og_include('compose/list.html.j2', {'p': {'Class': 'm-0 flex list-none flex-col p-0', 'Attrs': og_attrs(['data-slot', 'cta-proof'])}, 'children': c_27}) }}
{%- 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.
The proof of CtaProof. Shapes: logos (six names with a glyph), features (small features in two columns), stats (three figures), rows (four icon rows), zones (delivery zones: name and areas, price and time).
| Prop | Type | Default | Description |
|---|---|---|---|
| content (required) | CtaContent | - | |
| proof | "logos" | "features" | "stats" | "rows" | "zones" | "stats" | |
| center | boolean | false | the centered layout: items centred in their cells |