Skip to content
ui8kit

block / marketing

Cta Proof

A call to action with logos, features, figures, icon rows or delivery zones; centered or beside a picture.

Install

npx ui8kit add cta-proof

Pulls in: action-group, compose, cta-proof-items, error-page, feature-grid, kit-text, logo-cloud, media-frame, section-frame, stats-band, text, utils, zone-table

Preview

Free for 14 days

Start building today

Join the teams that publish faster with fewer moving parts.

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-cdn
npx ui8kit add cta-proof
blocks/cta-proof.svelte
<!-- 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 call to action with proof: a badge, the heading, a lead, the proof, one or two actions and an optional note.
  Axes: layout (center: everything centred, the proof above the actions; split: beside a picture), proof (logos,
  features, stats, rows, zones), mediaSide, tone.
-->
<script lang="ts" module>
  import type { Snippet } from "svelte";
  import type { CtaContent } from "./cta-proof.types";
  import type { Logo } from "./logo-cloud.types";
  import type { Feature } from "./feature-grid.types";
  import type { Stat } from "./stats-band.types";
  import type { Zone } from "./zone-table.types";
  import type { LinkActions } from "./error-page.types";

  export type CtaProofProps = {
    id: string;
    title: string;
    lead?: string;
    badge?: string;
    actions: LinkActions;
    content: CtaContent;
    note?: string;
    layout?: "center" | "split";
    proof?: "logos" | "features" | "stats" | "rows" | "zones";
    mediaSide?: "end" | "start";
    tone?: "default" | "muted";
    image?: string;
    imageAlt?: string;
    landmarkLabel?: string;
  };
</script>

<script lang="ts">
  import Text from "../compose/Text.svelte";
  import ActionGroup from "../components/action-group.svelte";
  import CtaProofItems from "../components/cta-proof-items.svelte";
  import MediaFrame from "../components/media-frame.svelte";
  import SectionFrame from "../components/section-frame.svelte";

  let {
    id,
    title,
    lead = "",
    badge = "",
    actions,
    content,
    note = "",
    layout = "center",
    proof = "stats",
    mediaSide = "end",
    tone = "default",
    image,
    imageAlt,
    landmarkLabel,
  }: CtaProofProps = $props();
</script>

<SectionFrame
  id={id}
  title={title}
  lead={lead}
  heading={{ badge }}
  tone={tone}
  align={(((layout as string) === "center") ? "center" : "start")}
  layout={(((layout as string) === "center") ? "stack" : "split")}
  media={{ show: ((layout as string) === "split"), side: mediaSide }}
  landmarkLabel={landmarkLabel}
>
  <CtaProofItems content={content} proof={proof} center={((layout as string) === "center")} />
  <ActionGroup
    primary={actions.cta}
    primaryHref={actions.href}
    secondary={((actions.mode === "two") ? actions.secondary : undefined)}
    secondaryHref={actions.secondaryHref}
    align={(((layout as string) === "center") ? "center" : "start")}
  />
  {#if note}
    <Text size="xs" class="text-muted-foreground" data-slot="cta-note">
      {note}
    </Text>
  {/if}
  {#snippet aside()}
    <MediaFrame alt={(imageAlt ? imageAlt : title)} src={image} ratio="4/3" />
  {/snippet}
</SectionFrame>
blocks/cta-proof.types.ts
// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.

import type { Logo } from "./logo-cloud.types";
import type { Feature } from "./feature-grid.types";
import type { Stat } from "./stats-band.types";
import type { Zone } from "./zone-table.types";

export type CtaContent = {
  logos: Logo[];
  features: Feature[];
  stats: Stat[];
  zones: Zone[];
};

Svelte registry item (JSON)

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-cdn
npx ui8kit add cta-proof
blocks/cta-proof.tsx
// 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 call to action with proof: a badge, the heading, a lead, the proof, one or two actions and an optional note.
 * Axes: layout (center: everything centred, the proof above the actions; split: beside a picture), proof (logos,
 * features, stats, rows, zones), mediaSide, tone.
 */
import { type ReactNode } from "react";
import { Text } from "../compose";
import { ActionGroup } from "../components/action-group";
import { CtaProofItems } from "../components/cta-proof-items";
import { MediaFrame } from "../components/media-frame";
import { SectionFrame } from "../components/section-frame";
import type { CtaContent } from "./cta-proof.types";
import type { Logo } from "./logo-cloud.types";
import type { Feature } from "./feature-grid.types";
import type { Stat } from "./stats-band.types";
import type { Zone } from "./zone-table.types";
import type { LinkActions } from "./error-page.types";

export type CtaProofProps = {
  id: string;
  title: string;
  lead?: string;
  badge?: string;
  actions: LinkActions;
  content: CtaContent;
  note?: string;
  layout?: "center" | "split";
  proof?: "logos" | "features" | "stats" | "rows" | "zones";
  mediaSide?: "end" | "start";
  tone?: "default" | "muted";
  image?: string;
  imageAlt?: string;
  landmarkLabel?: string;
};

export function CtaProof({
  id,
  title,
  lead = "",
  badge = "",
  actions,
  content,
  note = "",
  layout = "center",
  proof = "stats",
  mediaSide = "end",
  tone = "default",
  image,
  imageAlt,
  landmarkLabel,
}: CtaProofProps) {
  return (
    <SectionFrame
      id={id}
      title={title}
      lead={lead}
      heading={{ badge }}
      tone={tone}
      align={(((layout as string) === "center") ? "center" : "start")}
      layout={(((layout as string) === "center") ? "stack" : "split")}
      media={{ show: ((layout as string) === "split"), side: mediaSide }}
      landmarkLabel={landmarkLabel}
      aside={(
        <MediaFrame alt={(imageAlt ? imageAlt : title)} src={image} ratio="4/3" />
      )}
    >
      <CtaProofItems content={content} proof={proof} center={((layout as string) === "center")} />
      <ActionGroup
        primary={actions.cta}
        primaryHref={actions.href}
        secondary={((actions.mode === "two") ? actions.secondary : undefined)}
        secondaryHref={actions.secondaryHref}
        align={(((layout as string) === "center") ? "center" : "start")}
      />
      {note ? (
        <Text size="xs" className="text-muted-foreground" data-slot="cta-note">
          {note}
        </Text>
      ) : null}
    </SectionFrame>
  );
}
blocks/cta-proof.types.ts
// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.

import type { Logo } from "./logo-cloud.types";
import type { Feature } from "./feature-grid.types";
import type { Stat } from "./stats-band.types";
import type { Zone } from "./zone-table.types";

export type CtaContent = {
  logos: Logo[];
  features: Feature[];
  stats: Stat[];
  zones: Zone[];
};

React registry item (JSON)

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-cdn
npx ui8kit add cta-proof
blocks/cta-proof.types.ts
// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.

import type { Logo } from "./logo-cloud.types";
import type { Feature } from "./feature-grid.types";
import type { Stat } from "./stats-band.types";
import type { Zone } from "./zone-table.types";

export type CtaContent = {
  logos: Logo[];
  features: Feature[];
  stats: Stat[];
  zones: Zone[];
};
blocks/cta-proof.vue
<!-- 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 call to action with proof: a badge, the heading, a lead, the proof, one or two actions and an optional note.
  Axes: layout (center: everything centred, the proof above the actions; split: beside a picture), proof (logos,
  features, stats, rows, zones), mediaSide, tone.
-->
<script lang="ts">
import type { CtaContent } from "./cta-proof.types";
import type { Logo } from "./logo-cloud.types";
import type { Feature } from "./feature-grid.types";
import type { Stat } from "./stats-band.types";
import type { Zone } from "./zone-table.types";
import type { LinkActions } from "./error-page.types";

export type CtaProofProps = {
  id: string;
  title: string;
  lead?: string;
  badge?: string;
  actions: LinkActions;
  content: CtaContent;
  note?: string;
  layout?: "center" | "split";
  proof?: "logos" | "features" | "stats" | "rows" | "zones";
  mediaSide?: "end" | "start";
  tone?: "default" | "muted";
  image?: string;
  imageAlt?: string;
  landmarkLabel?: string;
};
</script>

<script setup lang="ts">
import Text from "../compose/Text.vue";
import ActionGroup from "../components/action-group.vue";
import CtaProofItems from "../components/cta-proof-items.vue";
import MediaFrame from "../components/media-frame.vue";
import SectionFrame from "../components/section-frame.vue";

const {
  id,
  title,
  lead = "",
  badge = "",
  actions,
  content,
  note = "",
  layout = "center",
  proof = "stats",
  mediaSide = "end",
  tone = "default",
  image,
  imageAlt,
  landmarkLabel,
} = defineProps<CtaProofProps>();
</script>

<template>
  <SectionFrame
    :id="id"
    :title="title"
    :lead="lead"
    :heading="{ badge }"
    :tone="tone"
    :align="(((layout as string) === 'center') ? 'center' : 'start')"
    :layout="(((layout as string) === 'center') ? 'stack' : 'split')"
    :media="{ show: ((layout as string) === 'split'), side: mediaSide }"
    :landmarkLabel="landmarkLabel"
  >
    <CtaProofItems :content="content" :proof="proof" :center="((layout as string) === 'center')" />
    <ActionGroup
      :primary="actions.cta"
      :primaryHref="actions.href"
      :secondary="((actions.mode === 'two') ? actions.secondary : undefined)"
      :secondaryHref="actions.secondaryHref"
      :align="(((layout as string) === 'center') ? 'center' : 'start')"
    />
    <Text v-if="note" size="xs" class="text-muted-foreground" data-slot="cta-note">
      {{ note }}
    </Text>
    <template #aside>
      <MediaFrame :alt="(imageAlt ? imageAlt : title)" :src="image" ratio="4/3" />
    </template>
  </SectionFrame>
</template>

Vue registry item (JSON)

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-cdn
npx ui8kit add cta-proof
blocks/cta-proof.tsx
// 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 call to action with proof: a badge, the heading, a lead, the proof, one or two actions and an optional note.
 * Axes: layout (center: everything centred, the proof above the actions; split: beside a picture), proof (logos,
 * features, stats, rows, zones), mediaSide, tone.
 */
import { type JSX } from "solid-js";
import { Text } from "../compose";
import { ActionGroup } from "../components/action-group";
import { CtaProofItems } from "../components/cta-proof-items";
import { MediaFrame } from "../components/media-frame";
import { SectionFrame } from "../components/section-frame";
import type { CtaContent } from "./cta-proof.types";
import type { Logo } from "./logo-cloud.types";
import type { Feature } from "./feature-grid.types";
import type { Stat } from "./stats-band.types";
import type { Zone } from "./zone-table.types";
import type { LinkActions } from "./error-page.types";

export type CtaProofProps = {
  id: string;
  title: string;
  lead?: string;
  badge?: string;
  actions: LinkActions;
  content: CtaContent;
  note?: string;
  layout?: "center" | "split";
  proof?: "logos" | "features" | "stats" | "rows" | "zones";
  mediaSide?: "end" | "start";
  tone?: "default" | "muted";
  image?: string;
  imageAlt?: string;
  landmarkLabel?: string;
};

export function CtaProof({
  id,
  title,
  lead = "",
  badge = "",
  actions,
  content,
  note = "",
  layout = "center",
  proof = "stats",
  mediaSide = "end",
  tone = "default",
  image,
  imageAlt,
  landmarkLabel,
}: CtaProofProps) {
  return (
    <SectionFrame
      id={id}
      title={title}
      lead={lead}
      heading={{ badge }}
      tone={tone}
      align={(((layout as string) === "center") ? "center" : "start")}
      layout={(((layout as string) === "center") ? "stack" : "split")}
      media={{ show: ((layout as string) === "split"), side: mediaSide }}
      landmarkLabel={landmarkLabel}
      aside={(
        <MediaFrame alt={(imageAlt ? imageAlt : title)} src={image} ratio="4/3" />
      )}
    >
      <CtaProofItems content={content} proof={proof} center={((layout as string) === "center")} />
      <ActionGroup
        primary={actions.cta}
        primaryHref={actions.href}
        secondary={((actions.mode === "two") ? actions.secondary : undefined)}
        secondaryHref={actions.secondaryHref}
        align={(((layout as string) === "center") ? "center" : "start")}
      />
      {note ? (
        <Text size="xs" class="text-muted-foreground" data-slot="cta-note">
          {note}
        </Text>
      ) : null}
    </SectionFrame>
  );
}
blocks/cta-proof.types.ts
// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.

import type { Logo } from "./logo-cloud.types";
import type { Feature } from "./feature-grid.types";
import type { Stat } from "./stats-band.types";
import type { Zone } from "./zone-table.types";

export type CtaContent = {
  logos: Logo[];
  features: Feature[];
  stats: Stat[];
  zones: Zone[];
};

Solid registry item (JSON)

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-cdn
npx ui8kit add cta-proof
blocks/cta-proof.templ
// 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.json

package blocks

import (
	"github.com/ui8kit/codegen/generated/templ/compose"
	"github.com/ui8kit/codegen/generated/templ/ui/text"
	uiutils "github.com/ui8kit/codegen/generated/templ/orgutils"
)

// CtaProofProps are the props of CtaProof; the values are the JSON shapes of the TypeScript props.
type CtaProofProps struct {
	Id any `json:"id"`
	Title any `json:"title"`
	Lead any `json:"lead"`
	Badge any `json:"badge"`
	Actions any `json:"actions"`
	Content any `json:"content"`
	Note any `json:"note"`
	Layout any `json:"layout"`
	Proof any `json:"proof"`
	MediaSide any `json:"mediaSide"`
	Tone any `json:"tone"`
	Image any `json:"image"`
	ImageAlt any `json:"imageAlt"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// A call to action with proof: a badge, the heading, a lead, the proof, one or two actions and an optional note. Axes: layout (center: everything centred, the proof above the actions; split: beside a picture), proof (logos, features, stats, rows, zones), mediaSide, tone.
templ CtaProof(p CtaProofProps) {
	{{ vId := p.Id }}
	{{ vTitle := p.Title }}
	{{ vLead := uiutils.Def(p.Lead, "") }}
	{{ vBadge := uiutils.Def(p.Badge, "") }}
	{{ vActions := p.Actions }}
	{{ vContent := p.Content }}
	{{ vNote := uiutils.Def(p.Note, "") }}
	{{ vLayout := uiutils.Def(p.Layout, "center") }}
	{{ vProof := uiutils.Def(p.Proof, "stats") }}
	{{ vMediaSide := uiutils.Def(p.MediaSide, "end") }}
	{{ vTone := uiutils.Def(p.Tone, "default") }}
	{{ vImage := p.Image }}
	{{ vImageAlt := p.ImageAlt }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{"badge": vBadge}, Tone: vTone, Align: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "center")), "center", "start"), Layout: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "center")), "stack", "split"), Media: map[string]any{"show": uiutils.Eq(vLayout, "split"), "side": vMediaSide}, LandmarkLabel: vLandmarkLabel, Aside: ctaProofFill1(p, vTitle, vImage, vImageAlt)}) {
		@CtaProofItems(CtaProofItemsProps{Content: vContent, Proof: vProof, Center: uiutils.Eq(vLayout, "center")})
		@ActionGroup(ActionGroupProps{Primary: uiutils.Get(vActions, "cta"), PrimaryHref: uiutils.Get(vActions, "href"), Secondary: uiutils.Cond(uiutils.T(uiutils.Eq(uiutils.Get(vActions, "mode"), "two")), uiutils.Get(vActions, "secondary"), nil), SecondaryHref: uiutils.Get(vActions, "secondaryHref"), Align: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "center")), "center", "start")})
		if uiutils.T(vNote) {
			@compose.Text(compose.TextProps{Size: "xs", TextProps: text.TextProps{Class: "text-muted-foreground", Attrs: uiutils.Attrs("data-slot", "cta-note")}}) {
				{ uiutils.Text(vNote) }
			}
		}
	}
}

templ ctaProofFill1(p CtaProofProps, vTitle any, vImage any, vImageAlt any) {
	@MediaFrame(MediaFrameProps{Alt: uiutils.Cond(uiutils.T(vImageAlt), vImageAlt, vTitle), Src: vImage, Ratio: "4/3"})
}

templ registry item (JSON)

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-cdn
npx ui8kit add cta-proof
blocks/cta-proof.html.twig
{#- 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.json
    A call to action with proof: a badge, the heading, a lead, the proof, one or two actions and an optional note. Axes: layout (center: everything centred, the proof above the actions; split: beside a picture), proof (logos, features, stats, rows, zones), mediaSide, tone.
    Props (p): id, title, lead, badge, actions, content, note, layout, proof, mediaSide, tone, image, imageAlt, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_lead = (p.lead ?? '') -%}
{%- set v_badge = (p.badge ?? '') -%}
{%- set v_actions = (p.actions ?? null) -%}
{%- set v_content = (p.content ?? null) -%}
{%- set v_note = (p.note ?? '') -%}
{%- set v_layout = (p.layout ?? 'center') -%}
{%- set v_proof = (p.proof ?? 'stats') -%}
{%- set v_mediaSide = (p.mediaSide ?? 'end') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_image = (p.image ?? null) -%}
{%- set v_imageAlt = (p.imageAlt ?? null) -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set f_2 -%}
  {{ include('blocks/media-frame.html.twig', {'p': {'alt': (og_t(v_imageAlt) ? v_imageAlt : v_title), 'src': v_image, 'ratio': '4/3'}}, with_context = false) }}
{%- endset -%}
{%- set c_3 -%}
  {{ include('blocks/cta-proof-items.html.twig', {'p': {'content': v_content, 'proof': v_proof, 'center': og_eq(v_layout, 'center')}}, with_context = false) }}
  {{ include('blocks/action-group.html.twig', {'p': {'primary': og_get(v_actions, ['cta']), 'primaryHref': og_get(v_actions, ['href']), 'secondary': (og_t(og_eq(og_get(v_actions, ['mode']), 'two')) ? og_get(v_actions, ['secondary']) : null), 'secondaryHref': og_get(v_actions, ['secondaryHref']), 'align': (og_t(og_eq(v_layout, 'center')) ? 'center' : 'start')}}, with_context = false) }}
  {%- if og_t(v_note) %}
    {%- set c_1 -%}
      {{ og_text(v_note) }}
    {%- endset -%}
    {{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'attrs': og_attrs(['data-slot', 'cta-note']), 'children': c_1}, with_context = false) }}
  {%- endif %}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'align': (og_t(og_eq(v_layout, 'center')) ? 'center' : 'start'), 'layout': (og_t(og_eq(v_layout, 'center')) ? 'stack' : 'split'), 'media': {'show': og_eq(v_layout, 'split'), 'side': v_mediaSide}, 'landmarkLabel': v_landmarkLabel, 'aside': og_markup(f_2)}, 'children': og_markup(c_3)}, with_context = false) }}

Twig registry item (JSON)

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-cdn
npx ui8kit add cta-proof
blocks/cta-proof.latte
{* 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.json
    A call to action with proof: a badge, the heading, a lead, the proof, one or two actions and an optional note. Axes: layout (center: everything centred, the proof above the actions; split: beside a picture), proof (logos, features, stats, rows, zones), mediaSide, tone.
    Props (p): id, title, lead, badge, actions, content, note, layout, proof, mediaSide, tone, image, imageAlt, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_lead = ($p['lead'] ?? '')}
{var $v_badge = ($p['badge'] ?? '')}
{var $v_actions = ($p['actions'] ?? null)}
{var $v_content = ($p['content'] ?? null)}
{var $v_note = ($p['note'] ?? '')}
{var $v_layout = ($p['layout'] ?? 'center')}
{var $v_proof = ($p['proof'] ?? 'stats')}
{var $v_mediaSide = ($p['mediaSide'] ?? 'end')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_image = ($p['image'] ?? null)}
{var $v_imageAlt = ($p['imageAlt'] ?? null)}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $f_2}
  {=og_include('blocks/media-frame.latte', ['p' => ['alt' => (og_t($v_imageAlt) ? $v_imageAlt : $v_title), 'src' => $v_image, 'ratio' => '4/3']])|noescape}
{/capture}
{capture $c_3}
  {=og_include('blocks/cta-proof-items.latte', ['p' => ['content' => $v_content, 'proof' => $v_proof, 'center' => og_eq($v_layout, 'center')]])|noescape}
  {=og_include('blocks/action-group.latte', ['p' => ['primary' => og_get($v_actions, ['cta']), 'primaryHref' => og_get($v_actions, ['href']), 'secondary' => (og_t(og_eq(og_get($v_actions, ['mode']), 'two')) ? og_get($v_actions, ['secondary']) : null), 'secondaryHref' => og_get($v_actions, ['secondaryHref']), 'align' => (og_t(og_eq($v_layout, 'center')) ? 'center' : 'start')]])|noescape}
  {if og_t($v_note)}
    {capture $c_1}
      {=og_text($v_note)}
    {/capture}
    {=og_include('compose/Text.latte', ['size' => 'xs', 'class' => 'text-muted-foreground', 'attrs' => og_attrs(['data-slot', 'cta-note']), 'children' => (string) $c_1])|noescape}
  {/if}
{/capture}
{=og_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'heading' => ['badge' => $v_badge], 'tone' => $v_tone, 'align' => (og_t(og_eq($v_layout, 'center')) ? 'center' : 'start'), 'layout' => (og_t(og_eq($v_layout, 'center')) ? 'stack' : 'split'), 'media' => ['show' => og_eq($v_layout, 'split'), 'side' => $v_mediaSide], 'landmarkLabel' => $v_landmarkLabel, 'aside' => og_markup($f_2)], 'children' => og_markup($c_3)])|noescape}

Latte registry item (JSON)

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-cdn
npx ui8kit add cta-proof
blocks/cta-proof.html.j2
{#- 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.json
    A call to action with proof: a badge, the heading, a lead, the proof, one or two actions and an optional note. Axes: layout (center: everything centred, the proof above the actions; split: beside a picture), proof (logos, features, stats, rows, zones), mediaSide, tone.
    Props (p): id, title, lead, badge, actions, content, note, layout, proof, mediaSide, tone, image, imageAlt, landmarkLabel. -#}
{%- set v_id = og_def(p['id'], none) -%}
{%- set v_title = og_def(p['title'], none) -%}
{%- set v_lead = og_def(p['lead'], '') -%}
{%- set v_badge = og_def(p['badge'], '') -%}
{%- set v_actions = og_def(p['actions'], none) -%}
{%- set v_content = og_def(p['content'], none) -%}
{%- set v_note = og_def(p['note'], '') -%}
{%- set v_layout = og_def(p['layout'], 'center') -%}
{%- set v_proof = og_def(p['proof'], 'stats') -%}
{%- set v_mediaSide = og_def(p['mediaSide'], 'end') -%}
{%- set v_tone = og_def(p['tone'], 'default') -%}
{%- set v_image = og_def(p['image'], none) -%}
{%- set v_imageAlt = og_def(p['imageAlt'], none) -%}
{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}
{%- set f_2 -%}
  {{ og_include('blocks/media-frame.html.j2', {'p': {'alt': (v_imageAlt if og_t(v_imageAlt) else v_title), 'src': v_image, 'ratio': '4/3'}}) }}
{%- endset -%}
{%- set c_3 -%}
  {{ og_include('blocks/cta-proof-items.html.j2', {'p': {'content': v_content, 'proof': v_proof, 'center': og_eq(v_layout, 'center')}}) }}
  {{ og_include('blocks/action-group.html.j2', {'p': {'primary': og_get(v_actions, ['cta']), 'primaryHref': og_get(v_actions, ['href']), 'secondary': (og_get(v_actions, ['secondary']) if og_t(og_eq(og_get(v_actions, ['mode']), 'two')) else none), 'secondaryHref': og_get(v_actions, ['secondaryHref']), 'align': ('center' if og_t(og_eq(v_layout, 'center')) else 'start')}}) }}
  {%- if og_t(v_note) %}
    {%- set c_1 -%}
      {{ og_text(v_note) }}
    {%- endset -%}
    {{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground', 'Attrs': og_attrs(['data-slot', 'cta-note'])}, 'children': c_1}) }}
  {%- endif %}
{%- endset -%}
{{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'align': ('center' if og_t(og_eq(v_layout, 'center')) else 'start'), 'layout': ('stack' if og_t(og_eq(v_layout, 'center')) else 'split'), 'media': {'show': og_eq(v_layout, 'split'), 'side': v_mediaSide}, 'landmarkLabel': v_landmarkLabel, 'aside': og_markup(f_2)}, 'children': og_markup(c_3)}) }}

Jinja2 registry item (JSON)

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 call to action with proof: a badge, the heading, a lead, the proof, one or two actions and an optional note. Axes: layout (center: everything centred, the proof above the actions; split: beside a picture), proof (logos, features, stats, rows, zones), mediaSide, tone.

Props of CtaProof
PropTypeDefault Description
id (required)string-
title (required)string-
lead string""
badge string""a short pill above the heading
actions (required)LinkActions-
content (required)CtaContent-
note string""a small line under the actions
layout "center" | "split""center"
proof "logos" | "features" | "stats" | "rows" | "zones""stats"
mediaSide "end" | "start""end"
tone "default" | "muted""default"
image string-address of the picture (an https URL or a path); none: the placeholder
imageAlt string-alt text of the picture; none: the title
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

Used in