Quote Split
One quote beside a picture, a rating panel or over logo tiles; stacked quotes beside a picture; four compact quotes; figures over a featured quote and a stack.
Install
npx ui8kit add quote-splitPulls in: action-group, box, compose, empty-state, error-page, kit-box, logo-cloud, media-frame, quote-figures, quote-logo-tiles, quote-rating-panel, quote-slot, section-frame, stack, stats-band, testimonial-grid, utils
Preview
Teams that switched
What people say after their first month.
We moved our marketing site in a week and the pages got faster.
Mara Quinn
Head of Growth, Lumen
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 quote-split<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->
<!--
Testimonials in a split or with figures. Axes: layout (media: one quote card and an action beside a picture,
logos: one quote over four logo tiles beside a picture, rating: one quote beside a rating panel, stack: three
stacked quote cards beside a picture, compact: four short quote cards in a row, bento: figures over a featured
quote beside a stack), mediaSide, tone.
-->
<script lang="ts" module>
import type { Snippet } from "svelte";
import type { QuoteExtras } from "./quote-split.types";
import type { Quote, QuoteLabels } from "./testimonial-grid.types";
import type { Stat } from "./stats-band.types";
import type { Logo } from "./logo-cloud.types";
import type { LinkActions } from "./error-page.types";
export type QuoteSplitProps = {
id: string;
title: string;
lead?: string;
badge?: string;
quotes: Quote[];
labels: QuoteLabels;
extras: QuoteExtras;
actions: LinkActions;
layout?: "media" | "logos" | "rating" | "stack" | "compact" | "bento";
mediaSide?: "end" | "start";
tone?: "default" | "muted";
empty?: string;
image?: string;
imageAlt?: string;
landmarkLabel?: string;
};
</script>
<script lang="ts">
import Box from "../compose/Box.svelte";
import Stack from "../compose/Stack.svelte";
import ActionGroup from "../components/action-group.svelte";
import EmptyState from "../components/empty-state.svelte";
import MediaFrame from "../components/media-frame.svelte";
import QuoteFigures from "../components/quote-figures.svelte";
import QuoteLogoTiles from "../components/quote-logo-tiles.svelte";
import QuoteRatingPanel from "../components/quote-rating-panel.svelte";
import QuoteSlot from "../components/quote-slot.svelte";
import SectionFrame from "../components/section-frame.svelte";
let {
id,
title,
lead = "",
badge = "",
quotes,
labels,
extras,
actions,
layout = "media",
mediaSide = "end",
tone = "default",
empty = "",
image,
imageAlt,
landmarkLabel,
}: QuoteSplitProps = $props();
</script>
{#if ((quotes?.length ?? 0) === 0)}
<SectionFrame id={id} title={title} lead={lead} heading={{ badge }} tone={tone} landmarkLabel={landmarkLabel}>
<EmptyState icon="quote" title={empty} />
</SectionFrame>
{:else if (((layout as string) === "compact") || ((layout as string) === "bento"))}
<SectionFrame id={id} title={title} lead={lead} heading={{ badge }} tone={tone} landmarkLabel={landmarkLabel}>
{#if ((layout as string) === "bento")}
<QuoteFigures extras={extras} />
{/if}
<Box
class={
(layout as string) === "bento" ? "grid grid-cols-1 gap-4 lg:grid-cols-2"
: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4"
}
>
{#each quotes as q, i (q.id)}
<QuoteSlot
q={q}
labels={labels}
layout={((((layout as string) === "bento") && (i === 0)) ? "single" : "grid")}
class={((((layout as string) === "bento") && (i === 0)) ? "lg:row-span-3" : "")}
/>
{/each}
</Box>
</SectionFrame>
{:else}
<SectionFrame
id={id}
title={title}
lead={lead}
heading={{ badge }}
tone={tone}
layout="split"
media={{ show: true, side: mediaSide }}
landmarkLabel={landmarkLabel}
>
{#if (((layout as string) === "media") || ((layout as string) === "logos") || ((layout as string) === "rating"))}
{#each quotes as q, i (q.id)}
{#if (i < 1)}
<QuoteSlot
q={q}
labels={labels}
kind={(((layout as string) === "media") ? "card" : "plain")}
layout="single"
class=""
/>
{/if}
{/each}
{/if}
{#if ((layout as string) === "logos")}
<QuoteLogoTiles extras={extras} />
{/if}
{#if ((layout as string) === "stack")}
<Stack gap="4" align="stretch">
{#each quotes as q, i (q.id)}
{#if (i < 3)}
<QuoteSlot q={q} labels={labels} layout="stack" class="" />
{/if}
{/each}
</Stack>
{/if}
{#if (((layout as string) === "media") || ((layout as string) === "logos") || ((layout as string) === "rating"))}
<ActionGroup
primary={actions.cta}
primaryHref={actions.href}
secondary={((actions.mode === "two") ? actions.secondary : undefined)}
secondaryHref={actions.secondaryHref}
/>
{/if}
{#snippet aside()}
{#if ((layout as string) === "rating")}
<QuoteRatingPanel extras={extras} labels={labels} />
{:else}
<MediaFrame alt={(imageAlt ? imageAlt : title)} src={image} ratio="4/3" />
{/if}
{/snippet}
</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.
import type { Stat } from "./stats-band.types";
import type { Logo } from "./logo-cloud.types";
export type QuoteExtras = {
stats: Stat[];
logos: Logo[];
rating: number;
score: string;
reviews: 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 quote-split// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
/**
* Testimonials in a split or with figures. Axes: layout (media: one quote card and an action beside a picture,
* logos: one quote over four logo tiles beside a picture, rating: one quote beside a rating panel, stack: three
* stacked quote cards beside a picture, compact: four short quote cards in a row, bento: figures over a featured
* quote beside a stack), mediaSide, tone.
*/
import { Fragment, type ReactNode } from "react";
import { Box, Stack } from "../compose";
import { ActionGroup } from "../components/action-group";
import { EmptyState } from "../components/empty-state";
import { MediaFrame } from "../components/media-frame";
import { QuoteFigures } from "../components/quote-figures";
import { QuoteLogoTiles } from "../components/quote-logo-tiles";
import { QuoteRatingPanel } from "../components/quote-rating-panel";
import { QuoteSlot } from "../components/quote-slot";
import { SectionFrame } from "../components/section-frame";
import type { QuoteExtras } from "./quote-split.types";
import type { Quote, QuoteLabels } from "./testimonial-grid.types";
import type { Stat } from "./stats-band.types";
import type { Logo } from "./logo-cloud.types";
import type { LinkActions } from "./error-page.types";
export type QuoteSplitProps = {
id: string;
title: string;
lead?: string;
badge?: string;
quotes: Quote[];
labels: QuoteLabels;
extras: QuoteExtras;
actions: LinkActions;
layout?: "media" | "logos" | "rating" | "stack" | "compact" | "bento";
mediaSide?: "end" | "start";
tone?: "default" | "muted";
empty?: string;
image?: string;
imageAlt?: string;
landmarkLabel?: string;
};
export function QuoteSplit({
id,
title,
lead = "",
badge = "",
quotes,
labels,
extras,
actions,
layout = "media",
mediaSide = "end",
tone = "default",
empty = "",
image,
imageAlt,
landmarkLabel,
}: QuoteSplitProps) {
return (
<>
{((quotes?.length ?? 0) === 0) ? (
<SectionFrame id={id} title={title} lead={lead} heading={{ badge }} tone={tone} landmarkLabel={landmarkLabel}>
<EmptyState icon="quote" title={empty} />
</SectionFrame>
) : (((layout as string) === "compact") || ((layout as string) === "bento")) ? (
<SectionFrame id={id} title={title} lead={lead} heading={{ badge }} tone={tone} landmarkLabel={landmarkLabel}>
{((layout as string) === "bento") ? (
<QuoteFigures extras={extras} />
) : null}
<Box
className={
(layout as string) === "bento" ? "grid grid-cols-1 gap-4 lg:grid-cols-2"
: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4"
}
>
{(quotes ?? []).map((q, i) => (
<QuoteSlot key={q.id}
q={q}
labels={labels}
layout={((((layout as string) === "bento") && (i === 0)) ? "single" : "grid")}
className={((((layout as string) === "bento") && (i === 0)) ? "lg:row-span-3" : "")}
/>
))}
</Box>
</SectionFrame>
) : (
<SectionFrame
id={id}
title={title}
lead={lead}
heading={{ badge }}
tone={tone}
layout="split"
media={{ show: true, side: mediaSide }}
landmarkLabel={landmarkLabel}
aside={(
<>
{((layout as string) === "rating") ? (
<QuoteRatingPanel extras={extras} labels={labels} />
) : (
<MediaFrame alt={(imageAlt ? imageAlt : title)} src={image} ratio="4/3" />
)}
</>
)}
>
{(((layout as string) === "media") || ((layout as string) === "logos") || ((layout as string) === "rating")) ? (
<>
{(quotes ?? []).map((q, i) => (
<Fragment key={q.id}>
{(i < 1) ? (
<QuoteSlot
q={q}
labels={labels}
kind={(((layout as string) === "media") ? "card" : "plain")}
layout="single"
className=""
/>
) : null}
</Fragment>
))}
</>
) : null}
{((layout as string) === "logos") ? (
<QuoteLogoTiles extras={extras} />
) : null}
{((layout as string) === "stack") ? (
<Stack gap="4" align="stretch">
{(quotes ?? []).map((q, i) => (
<Fragment key={q.id}>
{(i < 3) ? (
<QuoteSlot q={q} labels={labels} layout="stack" className="" />
) : null}
</Fragment>
))}
</Stack>
) : null}
{(((layout as string) === "media") || ((layout as string) === "logos") || ((layout as string) === "rating")) ? (
<ActionGroup
primary={actions.cta}
primaryHref={actions.href}
secondary={((actions.mode === "two") ? actions.secondary : undefined)}
secondaryHref={actions.secondaryHref}
/>
) : null}
</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.
import type { Stat } from "./stats-band.types";
import type { Logo } from "./logo-cloud.types";
export type QuoteExtras = {
stats: Stat[];
logos: Logo[];
rating: number;
score: string;
reviews: 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 quote-split// 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 { Stat } from "./stats-band.types";
import type { Logo } from "./logo-cloud.types";
export type QuoteExtras = {
stats: Stat[];
logos: Logo[];
rating: number;
score: string;
reviews: 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. -->
<!--
Testimonials in a split or with figures. Axes: layout (media: one quote card and an action beside a picture,
logos: one quote over four logo tiles beside a picture, rating: one quote beside a rating panel, stack: three
stacked quote cards beside a picture, compact: four short quote cards in a row, bento: figures over a featured
quote beside a stack), mediaSide, tone.
-->
<script lang="ts">
import type { QuoteExtras } from "./quote-split.types";
import type { Quote, QuoteLabels } from "./testimonial-grid.types";
import type { Stat } from "./stats-band.types";
import type { Logo } from "./logo-cloud.types";
import type { LinkActions } from "./error-page.types";
export type QuoteSplitProps = {
id: string;
title: string;
lead?: string;
badge?: string;
quotes: Quote[];
labels: QuoteLabels;
extras: QuoteExtras;
actions: LinkActions;
layout?: "media" | "logos" | "rating" | "stack" | "compact" | "bento";
mediaSide?: "end" | "start";
tone?: "default" | "muted";
empty?: string;
image?: string;
imageAlt?: string;
landmarkLabel?: string;
};
</script>
<script setup lang="ts">
import Box from "../compose/Box.vue";
import Stack from "../compose/Stack.vue";
import ActionGroup from "../components/action-group.vue";
import EmptyState from "../components/empty-state.vue";
import MediaFrame from "../components/media-frame.vue";
import QuoteFigures from "../components/quote-figures.vue";
import QuoteLogoTiles from "../components/quote-logo-tiles.vue";
import QuoteRatingPanel from "../components/quote-rating-panel.vue";
import QuoteSlot from "../components/quote-slot.vue";
import SectionFrame from "../components/section-frame.vue";
const {
id,
title,
lead = "",
badge = "",
quotes,
labels,
extras,
actions,
layout = "media",
mediaSide = "end",
tone = "default",
empty = "",
image,
imageAlt,
landmarkLabel,
} = defineProps<QuoteSplitProps>();
</script>
<template>
<SectionFrame v-if="((quotes?.length ?? 0) === 0)"
:id="id"
:title="title"
:lead="lead"
:heading="{ badge }"
:tone="tone"
:landmarkLabel="landmarkLabel"
>
<EmptyState icon="quote" :title="empty" />
</SectionFrame>
<SectionFrame v-else-if="(((layout as string) === 'compact') || ((layout as string) === 'bento'))"
:id="id"
:title="title"
:lead="lead"
:heading="{ badge }"
:tone="tone"
:landmarkLabel="landmarkLabel"
>
<QuoteFigures v-if="((layout as string) === 'bento')" :extras="extras" />
<Box
:class="
(layout as string) === 'bento' ? 'grid grid-cols-1 gap-4 lg:grid-cols-2'
: 'grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4'
"
>
<QuoteSlot v-for="(q, i) in quotes" :key="q.id"
:q="q"
:labels="labels"
:layout="((((layout as string) === 'bento') && (i === 0)) ? 'single' : 'grid')"
:class="((((layout as string) === 'bento') && (i === 0)) ? 'lg:row-span-3' : '')"
/>
</Box>
</SectionFrame>
<SectionFrame v-else
:id="id"
:title="title"
:lead="lead"
:heading="{ badge }"
:tone="tone"
layout="split"
:media="{ show: true, side: mediaSide }"
:landmarkLabel="landmarkLabel"
>
<template v-if="(((layout as string) === 'media') || ((layout as string) === 'logos') || ((layout as string) === 'rating'))">
<template v-for="(q, i) in quotes" :key="q.id">
<QuoteSlot v-if="(i < 1)"
:q="q"
:labels="labels"
:kind="(((layout as string) === 'media') ? 'card' : 'plain')"
layout="single"
class=""
/>
</template>
</template>
<QuoteLogoTiles v-if="((layout as string) === 'logos')" :extras="extras" />
<Stack v-if="((layout as string) === 'stack')" gap="4" align="stretch">
<template v-for="(q, i) in quotes" :key="q.id">
<QuoteSlot v-if="(i < 3)" :q="q" :labels="labels" layout="stack" class="" />
</template>
</Stack>
<ActionGroup v-if="(((layout as string) === 'media') || ((layout as string) === 'logos') || ((layout as string) === 'rating'))"
:primary="actions.cta"
:primaryHref="actions.href"
:secondary="((actions.mode === 'two') ? actions.secondary : undefined)"
:secondaryHref="actions.secondaryHref"
/>
<template #aside>
<QuoteRatingPanel v-if="((layout as string) === 'rating')" :extras="extras" :labels="labels" />
<MediaFrame v-else :alt="(imageAlt ? imageAlt : title)" :src="image" ratio="4/3" />
</template>
</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 quote-split// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
/**
* Testimonials in a split or with figures. Axes: layout (media: one quote card and an action beside a picture,
* logos: one quote over four logo tiles beside a picture, rating: one quote beside a rating panel, stack: three
* stacked quote cards beside a picture, compact: four short quote cards in a row, bento: figures over a featured
* quote beside a stack), mediaSide, tone.
*/
import { For, type JSX } from "solid-js";
import { Box, Stack } from "../compose";
import { ActionGroup } from "../components/action-group";
import { EmptyState } from "../components/empty-state";
import { MediaFrame } from "../components/media-frame";
import { QuoteFigures } from "../components/quote-figures";
import { QuoteLogoTiles } from "../components/quote-logo-tiles";
import { QuoteRatingPanel } from "../components/quote-rating-panel";
import { QuoteSlot } from "../components/quote-slot";
import { SectionFrame } from "../components/section-frame";
import type { QuoteExtras } from "./quote-split.types";
import type { Quote, QuoteLabels } from "./testimonial-grid.types";
import type { Stat } from "./stats-band.types";
import type { Logo } from "./logo-cloud.types";
import type { LinkActions } from "./error-page.types";
export type QuoteSplitProps = {
id: string;
title: string;
lead?: string;
badge?: string;
quotes: Quote[];
labels: QuoteLabels;
extras: QuoteExtras;
actions: LinkActions;
layout?: "media" | "logos" | "rating" | "stack" | "compact" | "bento";
mediaSide?: "end" | "start";
tone?: "default" | "muted";
empty?: string;
image?: string;
imageAlt?: string;
landmarkLabel?: string;
};
export function QuoteSplit({
id,
title,
lead = "",
badge = "",
quotes,
labels,
extras,
actions,
layout = "media",
mediaSide = "end",
tone = "default",
empty = "",
image,
imageAlt,
landmarkLabel,
}: QuoteSplitProps) {
return (
<>
{((quotes?.length ?? 0) === 0) ? (
<SectionFrame id={id} title={title} lead={lead} heading={{ badge }} tone={tone} landmarkLabel={landmarkLabel}>
<EmptyState icon="quote" title={empty} />
</SectionFrame>
) : (((layout as string) === "compact") || ((layout as string) === "bento")) ? (
<SectionFrame id={id} title={title} lead={lead} heading={{ badge }} tone={tone} landmarkLabel={landmarkLabel}>
{((layout as string) === "bento") ? (
<QuoteFigures extras={extras} />
) : null}
<Box
class={
(layout as string) === "bento" ? "grid grid-cols-1 gap-4 lg:grid-cols-2"
: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4"
}
>
<For each={quotes ?? []}>{(q, iOf) => { const i = iOf(); return (
<QuoteSlot
q={q}
labels={labels}
layout={((((layout as string) === "bento") && (i === 0)) ? "single" : "grid")}
class={((((layout as string) === "bento") && (i === 0)) ? "lg:row-span-3" : "")}
/>
); }}</For>
</Box>
</SectionFrame>
) : (
<SectionFrame
id={id}
title={title}
lead={lead}
heading={{ badge }}
tone={tone}
layout="split"
media={{ show: true, side: mediaSide }}
landmarkLabel={landmarkLabel}
aside={(
<>
{((layout as string) === "rating") ? (
<QuoteRatingPanel extras={extras} labels={labels} />
) : (
<MediaFrame alt={(imageAlt ? imageAlt : title)} src={image} ratio="4/3" />
)}
</>
)}
>
{(((layout as string) === "media") || ((layout as string) === "logos") || ((layout as string) === "rating")) ? (
<>
<For each={quotes ?? []}>{(q, iOf) => { const i = iOf(); return (
<>
{(i < 1) ? (
<QuoteSlot
q={q}
labels={labels}
kind={(((layout as string) === "media") ? "card" : "plain")}
layout="single"
class=""
/>
) : null}
</>
); }}</For>
</>
) : null}
{((layout as string) === "logos") ? (
<QuoteLogoTiles extras={extras} />
) : null}
{((layout as string) === "stack") ? (
<Stack gap="4" align="stretch">
<For each={quotes ?? []}>{(q, iOf) => { const i = iOf(); return (
<>
{(i < 3) ? (
<QuoteSlot q={q} labels={labels} layout="stack" class="" />
) : null}
</>
); }}</For>
</Stack>
) : null}
{(((layout as string) === "media") || ((layout as string) === "logos") || ((layout as string) === "rating")) ? (
<ActionGroup
primary={actions.cta}
primaryHref={actions.href}
secondary={((actions.mode === "two") ? actions.secondary : undefined)}
secondaryHref={actions.secondaryHref}
/>
) : null}
</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.
import type { Stat } from "./stats-band.types";
import type { Logo } from "./logo-cloud.types";
export type QuoteExtras = {
stats: Stat[];
logos: Logo[];
rating: number;
score: string;
reviews: 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 quote-split// 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/quote-split.json
package blocks
import (
"github.com/ui8kit/codegen/generated/templ/ui/box"
"github.com/ui8kit/codegen/generated/templ/compose"
uiutils "github.com/ui8kit/codegen/generated/templ/orgutils"
)
// QuoteSplitProps are the props of QuoteSplit; the values are the JSON shapes of the TypeScript props.
type QuoteSplitProps struct {
Id any `json:"id"`
Title any `json:"title"`
Lead any `json:"lead"`
Badge any `json:"badge"`
Quotes any `json:"quotes"`
Labels any `json:"labels"`
Extras any `json:"extras"`
Actions any `json:"actions"`
Layout any `json:"layout"`
MediaSide any `json:"mediaSide"`
Tone any `json:"tone"`
Empty any `json:"empty"`
Image any `json:"image"`
ImageAlt any `json:"imageAlt"`
LandmarkLabel any `json:"landmarkLabel"`
}
// Testimonials in a split or with figures. Axes: layout (media: one quote card and an action beside a picture, logos: one quote over four logo tiles beside a picture, rating: one quote beside a rating panel, stack: three stacked quote cards beside a picture, compact: four short quote cards in a row, bento: figures over a featured quote beside a stack), mediaSide, tone.
templ QuoteSplit(p QuoteSplitProps) {
{{ vId := p.Id }}
{{ vTitle := p.Title }}
{{ vLead := uiutils.Def(p.Lead, "") }}
{{ vBadge := uiutils.Def(p.Badge, "") }}
{{ vQuotes := p.Quotes }}
{{ vLabels := p.Labels }}
{{ vExtras := p.Extras }}
{{ vActions := p.Actions }}
{{ vLayout := uiutils.Def(p.Layout, "media") }}
{{ vMediaSide := uiutils.Def(p.MediaSide, "end") }}
{{ vTone := uiutils.Def(p.Tone, "default") }}
{{ vEmpty := uiutils.Def(p.Empty, "") }}
{{ vImage := p.Image }}
{{ vImageAlt := p.ImageAlt }}
{{ vLandmarkLabel := p.LandmarkLabel }}
if uiutils.Eq(uiutils.Len(vQuotes), float64(0)) {
@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{"badge": vBadge}, Tone: vTone, LandmarkLabel: vLandmarkLabel}) {
@EmptyState(EmptyStateProps{Icon: "quote", Title: vEmpty})
}
} else if uiutils.T(uiutils.Or(uiutils.Eq(vLayout, "compact"), uiutils.Eq(vLayout, "bento"))) {
@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{"badge": vBadge}, Tone: vTone, LandmarkLabel: vLandmarkLabel}) {
if uiutils.Eq(vLayout, "bento") {
@QuoteFigures(QuoteFiguresProps{Extras: vExtras})
}
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "bento")), "grid grid-cols-1 gap-4 lg:grid-cols-2", "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4"))}}) {
for vI, vQ := range uiutils.L(vQuotes) {
@QuoteSlot(QuoteSlotProps{Q: vQ, Labels: vLabels, Layout: uiutils.Cond(uiutils.T(uiutils.And(uiutils.Eq(vLayout, "bento"), uiutils.Eq(float64(vI), float64(0)))), "single", "grid"), Class: uiutils.Cnv(uiutils.Cond(uiutils.T(uiutils.And(uiutils.Eq(vLayout, "bento"), uiutils.Eq(float64(vI), float64(0)))), "lg:row-span-3", ""))})
}
}
}
} else {
@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{"badge": vBadge}, Tone: vTone, Layout: "split", Media: map[string]any{"show": true, "side": vMediaSide}, LandmarkLabel: vLandmarkLabel, Aside: quoteSplitFill1(p, vTitle, vLabels, vExtras, vLayout, vImage, vImageAlt)}) {
if uiutils.T(uiutils.Or(uiutils.Eq(vLayout, "media"), uiutils.Eq(vLayout, "logos"), uiutils.Eq(vLayout, "rating"))) {
for vI, vQ := range uiutils.L(vQuotes) {
if uiutils.Lt(float64(vI), float64(1)) {
@QuoteSlot(QuoteSlotProps{Q: vQ, Labels: vLabels, Kind: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "media")), "card", "plain"), Layout: "single", Class: uiutils.Cnv("")})
}
}
}
if uiutils.Eq(vLayout, "logos") {
@QuoteLogoTiles(QuoteLogoTilesProps{Extras: vExtras})
}
if uiutils.Eq(vLayout, "stack") {
@compose.Stack(compose.StackProps{Gap: "4", Align: "stretch", BoxProps: box.BoxProps{}}) {
for vI, vQ := range uiutils.L(vQuotes) {
if uiutils.Lt(float64(vI), float64(3)) {
@QuoteSlot(QuoteSlotProps{Q: vQ, Labels: vLabels, Layout: "stack", Class: uiutils.Cnv("")})
}
}
}
}
if uiutils.T(uiutils.Or(uiutils.Eq(vLayout, "media"), uiutils.Eq(vLayout, "logos"), uiutils.Eq(vLayout, "rating"))) {
@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")})
}
}
}
}
templ quoteSplitFill1(p QuoteSplitProps, vTitle any, vLabels any, vExtras any, vLayout any, vImage any, vImageAlt any) {
if uiutils.Eq(vLayout, "rating") {
@QuoteRatingPanel(QuoteRatingPanelProps{Extras: vExtras, Labels: vLabels})
} else {
@MediaFrame(MediaFrameProps{Alt: uiutils.Cond(uiutils.T(vImageAlt), vImageAlt, vTitle), Src: vImage, Ratio: "4/3"})
}
}
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 quote-split{#- 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/quote-split.json
Testimonials in a split or with figures. Axes: layout (media: one quote card and an action beside a picture, logos: one quote over four logo tiles beside a picture, rating: one quote beside a rating panel, stack: three stacked quote cards beside a picture, compact: four short quote cards in a row, bento: figures over a featured quote beside a stack), mediaSide, tone.
Props (p): id, title, lead, badge, quotes, labels, extras, actions, layout, mediaSide, tone, empty, 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_quotes = (p.quotes ?? null) -%}
{%- set v_labels = (p.labels ?? null) -%}
{%- set v_extras = (p.extras ?? null) -%}
{%- set v_actions = (p.actions ?? null) -%}
{%- set v_layout = (p.layout ?? 'media') -%}
{%- set v_mediaSide = (p.mediaSide ?? 'end') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_empty = (p.empty ?? '') -%}
{%- set v_image = (p.image ?? null) -%}
{%- set v_imageAlt = (p.imageAlt ?? null) -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- if og_t(og_eq(og_len(v_quotes), 0)) %}
{%- set c_1 -%}
{{ include('blocks/empty-state.html.twig', {'p': {'icon': 'quote', 'title': v_empty}}, with_context = false) }}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_1)}, with_context = false) }}
{%- elseif og_t(og_or([og_eq(v_layout, 'compact'), og_eq(v_layout, 'bento')])) %}
{%- set c_3 -%}
{%- if og_t(og_eq(v_layout, 'bento')) %}
{{ include('blocks/quote-figures.html.twig', {'p': {'extras': v_extras}}, with_context = false) }}
{%- endif %}
{%- set c_2 -%}
{%- for v_q in og_l(v_quotes) %}
{%- set v_i = loop.index0 -%}
{{ include('blocks/quote-slot.html.twig', {'p': {'q': v_q, 'labels': v_labels, 'layout': (og_t(og_and([og_eq(v_layout, 'bento'), og_eq(v_i, 0)])) ? 'single' : 'grid'), 'className': og_cnv([(og_t(og_and([og_eq(v_layout, 'bento'), og_eq(v_i, 0)])) ? 'lg:row-span-3' : '')])}}, with_context = false) }}
{%- endfor %}
{%- endset -%}
{{ include('compose/Box.html.twig', {'class': og_s((og_t(og_eq(v_layout, 'bento')) ? 'grid grid-cols-1 gap-4 lg:grid-cols-2' : 'grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4')), 'children': c_2}, with_context = false) }}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_3)}, with_context = false) }}
{%- else %}
{%- set f_5 -%}
{%- if og_t(og_eq(v_layout, 'rating')) %}
{{ include('blocks/quote-rating-panel.html.twig', {'p': {'extras': v_extras, 'labels': v_labels}}, with_context = false) }}
{%- else %}
{{ 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) }}
{%- endif %}
{%- endset -%}
{%- set c_6 -%}
{%- if og_t(og_or([og_eq(v_layout, 'media'), og_eq(v_layout, 'logos'), og_eq(v_layout, 'rating')])) %}
{%- for v_q in og_l(v_quotes) %}
{%- set v_i = loop.index0 -%}
{%- if og_t(og_lt(v_i, 1)) %}
{{ include('blocks/quote-slot.html.twig', {'p': {'q': v_q, 'labels': v_labels, 'kind': (og_t(og_eq(v_layout, 'media')) ? 'card' : 'plain'), 'layout': 'single', 'className': og_cnv([''])}}, with_context = false) }}
{%- endif %}
{%- endfor %}
{%- endif %}
{%- if og_t(og_eq(v_layout, 'logos')) %}
{{ include('blocks/quote-logo-tiles.html.twig', {'p': {'extras': v_extras}}, with_context = false) }}
{%- endif %}
{%- if og_t(og_eq(v_layout, 'stack')) %}
{%- set c_4 -%}
{%- for v_q in og_l(v_quotes) %}
{%- set v_i = loop.index0 -%}
{%- if og_t(og_lt(v_i, 3)) %}
{{ include('blocks/quote-slot.html.twig', {'p': {'q': v_q, 'labels': v_labels, 'layout': 'stack', 'className': og_cnv([''])}}, with_context = false) }}
{%- endif %}
{%- endfor %}
{%- endset -%}
{{ include('compose/Stack.html.twig', {'gap': '4', 'align': 'stretch', 'children': c_4}, with_context = false) }}
{%- endif %}
{%- if og_t(og_or([og_eq(v_layout, 'media'), og_eq(v_layout, 'logos'), og_eq(v_layout, 'rating')])) %}
{{ 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'])}}, 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, 'layout': 'split', 'media': {'show': true, 'side': v_mediaSide}, 'landmarkLabel': v_landmarkLabel, 'aside': og_markup(f_5)}, 'children': og_markup(c_6)}, 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 quote-split{* 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/quote-split.json
Testimonials in a split or with figures. Axes: layout (media: one quote card and an action beside a picture, logos: one quote over four logo tiles beside a picture, rating: one quote beside a rating panel, stack: three stacked quote cards beside a picture, compact: four short quote cards in a row, bento: figures over a featured quote beside a stack), mediaSide, tone.
Props (p): id, title, lead, badge, quotes, labels, extras, actions, layout, mediaSide, tone, empty, 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_quotes = ($p['quotes'] ?? null)}
{var $v_labels = ($p['labels'] ?? null)}
{var $v_extras = ($p['extras'] ?? null)}
{var $v_actions = ($p['actions'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'media')}
{var $v_mediaSide = ($p['mediaSide'] ?? 'end')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_empty = ($p['empty'] ?? '')}
{var $v_image = ($p['image'] ?? null)}
{var $v_imageAlt = ($p['imageAlt'] ?? null)}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{if og_t(og_eq(og_len($v_quotes), 0))}
{capture $c_1}
{=og_include('blocks/empty-state.latte', ['p' => ['icon' => 'quote', 'title' => $v_empty]])|noescape}
{/capture}
{=og_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'heading' => ['badge' => $v_badge], 'tone' => $v_tone, 'landmarkLabel' => $v_landmarkLabel], 'children' => og_markup($c_1)])|noescape}
{elseif og_t(og_or([og_eq($v_layout, 'compact'), og_eq($v_layout, 'bento')]))}
{capture $c_3}
{if og_t(og_eq($v_layout, 'bento'))}
{=og_include('blocks/quote-figures.latte', ['p' => ['extras' => $v_extras]])|noescape}
{/if}
{capture $c_2}
{foreach og_l($v_quotes) as $v_q}
{var $v_i = $iterator->counter0}
{=og_include('blocks/quote-slot.latte', ['p' => ['q' => $v_q, 'labels' => $v_labels, 'layout' => (og_t(og_and([og_eq($v_layout, 'bento'), og_eq($v_i, 0)])) ? 'single' : 'grid'), 'className' => og_cnv([(og_t(og_and([og_eq($v_layout, 'bento'), og_eq($v_i, 0)])) ? 'lg:row-span-3' : '')])]])|noescape}
{/foreach}
{/capture}
{=og_include('compose/Box.latte', ['class' => og_s((og_t(og_eq($v_layout, 'bento')) ? 'grid grid-cols-1 gap-4 lg:grid-cols-2' : 'grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4')), 'children' => (string) $c_2])|noescape}
{/capture}
{=og_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'heading' => ['badge' => $v_badge], 'tone' => $v_tone, 'landmarkLabel' => $v_landmarkLabel], 'children' => og_markup($c_3)])|noescape}
{else}
{capture $f_5}
{if og_t(og_eq($v_layout, 'rating'))}
{=og_include('blocks/quote-rating-panel.latte', ['p' => ['extras' => $v_extras, 'labels' => $v_labels]])|noescape}
{else}
{=og_include('blocks/media-frame.latte', ['p' => ['alt' => (og_t($v_imageAlt) ? $v_imageAlt : $v_title), 'src' => $v_image, 'ratio' => '4/3']])|noescape}
{/if}
{/capture}
{capture $c_6}
{if og_t(og_or([og_eq($v_layout, 'media'), og_eq($v_layout, 'logos'), og_eq($v_layout, 'rating')]))}
{foreach og_l($v_quotes) as $v_q}
{var $v_i = $iterator->counter0}
{if og_t(og_lt($v_i, 1))}
{=og_include('blocks/quote-slot.latte', ['p' => ['q' => $v_q, 'labels' => $v_labels, 'kind' => (og_t(og_eq($v_layout, 'media')) ? 'card' : 'plain'), 'layout' => 'single', 'className' => og_cnv([''])]])|noescape}
{/if}
{/foreach}
{/if}
{if og_t(og_eq($v_layout, 'logos'))}
{=og_include('blocks/quote-logo-tiles.latte', ['p' => ['extras' => $v_extras]])|noescape}
{/if}
{if og_t(og_eq($v_layout, 'stack'))}
{capture $c_4}
{foreach og_l($v_quotes) as $v_q}
{var $v_i = $iterator->counter0}
{if og_t(og_lt($v_i, 3))}
{=og_include('blocks/quote-slot.latte', ['p' => ['q' => $v_q, 'labels' => $v_labels, 'layout' => 'stack', 'className' => og_cnv([''])]])|noescape}
{/if}
{/foreach}
{/capture}
{=og_include('compose/Stack.latte', ['gap' => '4', 'align' => 'stretch', 'children' => (string) $c_4])|noescape}
{/if}
{if og_t(og_or([og_eq($v_layout, 'media'), og_eq($v_layout, 'logos'), og_eq($v_layout, 'rating')]))}
{=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'])]])|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, 'layout' => 'split', 'media' => ['show' => true, 'side' => $v_mediaSide], 'landmarkLabel' => $v_landmarkLabel, 'aside' => og_markup($f_5)], 'children' => og_markup($c_6)])|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 quote-split{#- 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/quote-split.json
Testimonials in a split or with figures. Axes: layout (media: one quote card and an action beside a picture, logos: one quote over four logo tiles beside a picture, rating: one quote beside a rating panel, stack: three stacked quote cards beside a picture, compact: four short quote cards in a row, bento: figures over a featured quote beside a stack), mediaSide, tone.
Props (p): id, title, lead, badge, quotes, labels, extras, actions, layout, mediaSide, tone, empty, 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_quotes = og_def(p['quotes'], none) -%}
{%- set v_labels = og_def(p['labels'], none) -%}
{%- set v_extras = og_def(p['extras'], none) -%}
{%- set v_actions = og_def(p['actions'], none) -%}
{%- set v_layout = og_def(p['layout'], 'media') -%}
{%- set v_mediaSide = og_def(p['mediaSide'], 'end') -%}
{%- set v_tone = og_def(p['tone'], 'default') -%}
{%- set v_empty = og_def(p['empty'], '') -%}
{%- set v_image = og_def(p['image'], none) -%}
{%- set v_imageAlt = og_def(p['imageAlt'], none) -%}
{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}
{%- if og_t(og_eq(og_len(v_quotes), 0)) %}
{%- set c_1 -%}
{{ og_include('blocks/empty-state.html.j2', {'p': {'icon': 'quote', 'title': v_empty}}) }}
{%- 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, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_1)}) }}
{%- elif og_t(og_or([og_eq(v_layout, 'compact'), og_eq(v_layout, 'bento')])) %}
{%- set c_3 -%}
{%- if og_t(og_eq(v_layout, 'bento')) %}
{{ og_include('blocks/quote-figures.html.j2', {'p': {'extras': v_extras}}) }}
{%- endif %}
{%- set c_2 -%}
{%- for v_q in og_l(v_quotes) %}
{%- set v_i = loop.index0 -%}
{{ og_include('blocks/quote-slot.html.j2', {'p': {'q': v_q, 'labels': v_labels, 'layout': ('single' if og_t(og_and([og_eq(v_layout, 'bento'), og_eq(v_i, 0)])) else 'grid'), 'className': og_cnv([('lg:row-span-3' if og_t(og_and([og_eq(v_layout, 'bento'), og_eq(v_i, 0)])) else '')])}}) }}
{%- endfor %}
{%- endset -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(('grid grid-cols-1 gap-4 lg:grid-cols-2' if og_t(og_eq(v_layout, 'bento')) else 'grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4'))}, 'children': c_2}) }}
{%- 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, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_3)}) }}
{%- else %}
{%- set f_5 -%}
{%- if og_t(og_eq(v_layout, 'rating')) %}
{{ og_include('blocks/quote-rating-panel.html.j2', {'p': {'extras': v_extras, 'labels': v_labels}}) }}
{%- else %}
{{ 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'}}) }}
{%- endif %}
{%- endset -%}
{%- set c_6 -%}
{%- if og_t(og_or([og_eq(v_layout, 'media'), og_eq(v_layout, 'logos'), og_eq(v_layout, 'rating')])) %}
{%- for v_q in og_l(v_quotes) %}
{%- set v_i = loop.index0 -%}
{%- if og_t(og_lt(v_i, 1)) %}
{{ og_include('blocks/quote-slot.html.j2', {'p': {'q': v_q, 'labels': v_labels, 'kind': ('card' if og_t(og_eq(v_layout, 'media')) else 'plain'), 'layout': 'single', 'className': og_cnv([''])}}) }}
{%- endif %}
{%- endfor %}
{%- endif %}
{%- if og_t(og_eq(v_layout, 'logos')) %}
{{ og_include('blocks/quote-logo-tiles.html.j2', {'p': {'extras': v_extras}}) }}
{%- endif %}
{%- if og_t(og_eq(v_layout, 'stack')) %}
{%- set c_4 -%}
{%- for v_q in og_l(v_quotes) %}
{%- set v_i = loop.index0 -%}
{%- if og_t(og_lt(v_i, 3)) %}
{{ og_include('blocks/quote-slot.html.j2', {'p': {'q': v_q, 'labels': v_labels, 'layout': 'stack', 'className': og_cnv([''])}}) }}
{%- endif %}
{%- endfor %}
{%- endset -%}
{{ og_include('compose/stack.html.j2', {'p': {'Gap': '4', 'Align': 'stretch'}, 'children': c_4}) }}
{%- endif %}
{%- if og_t(og_or([og_eq(v_layout, 'media'), og_eq(v_layout, 'logos'), og_eq(v_layout, 'rating')])) %}
{{ 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'])}}) }}
{%- 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, 'layout': 'split', 'media': {'show': true, 'side': v_mediaSide}, 'landmarkLabel': v_landmarkLabel, 'aside': og_markup(f_5)}, 'children': og_markup(c_6)}) }}
{%- 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.
Testimonials in a split or with figures. Axes: layout (media: one quote card and an action beside a picture, logos: one quote over four logo tiles beside a picture, rating: one quote beside a rating panel, stack: three stacked quote cards beside a picture, compact: four short quote cards in a row, bento: figures over a featured quote beside a stack), mediaSide, tone.
| Prop | Type | Default | Description |
|---|---|---|---|
| id (required) | string | - | |
| title (required) | string | - | |
| lead | string | "" | |
| badge | string | "" | a short pill above the heading |
| quotes (required) | Quote[] | - | |
| labels (required) | QuoteLabels | - | |
| extras (required) | QuoteExtras | - | |
| actions (required) | LinkActions | - | |
| layout | "media" | "logos" | "rating" | "stack" | "compact" | "bento" | "media" | |
| mediaSide | "end" | "start" | "end" | |
| tone | "default" | "muted" | "default" | |
| empty | string | "" | the text of the empty state (no records), from the dictionary |
| 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 |