Files
hyperframes/docs/catalog/blocks/share-sheet-carousel.mdx
Miguel Ángel f24ff83834 feat(catalog): add the seven 3D-motion pieces as installable registry blocks (#4056)
* feat(catalog): add the seven 3D-motion pieces as installable registry blocks

Each piece ships as a registry block with a CDN poster and preview, a live
catalog detail page and its source. Scripts travel inside the catalog payload
(shared vendor libraries fetched once, item scripts inline, the one HDR as a
data URI) because the docs host only serves fonts, images and JSON.

NO_ESSAY_COMMENTS_OK: the long comment blocks are in vendored libraries and
the ported frost source under registry/blocks, not hand-written here.
HF_MAX_NONLFS_KB=6000: four hosted texture PNGs under docs/public/catalog/items
are runtime assets the docs host must serve as files.
fallow skipped locally: it audits against origin/main and this branch is
stacked on an older main.

* chore(catalog): regenerate gallery data and nav after rebasing onto main

* fix(catalog): read the install manifest through the bounded project reader

* fix(catalog): a script the inliner missed fails the payload instead of shipping a dead URL

* refactor(catalog): the leftover-script check reuses the reference finder

* fix(catalog): frost and glass textures load from the CDN and the iteration presets are gone

* chore(catalog): regenerate the frost and glass payloads and nav

* fix(catalog): frost and glass textures are hosted through the registry url field, not hardcoded

* chore(catalog): regenerate the frost and glass payloads against the hosted texture URLs

* fix(catalog): the hosted-reference rewrite refuses a bare name it cannot safely replace

* ci(catalog): verify changed catalog payloads in headless Chrome and check the docs catalog

* feat(catalog): every item page follows the shared layout with a Tune panel and tabs

* fix(catalog): let the texture-mask item host its masks so its tile plays live

* chore(catalog): regenerate item pages, gallery data and the texture-mask payload

* chore(catalog): regenerate item pages after merging main

* fix(catalog): declared-only variables get the Tune panel, Code and Docs tabs capped

* feat(catalog): give the blend-difference caption a demo scene so its tile plays live

* chore(catalog): live payload for the blend-difference caption

* perf(catalog): heavy 3d pieces compile and draw before ready, not on the first visible frame

* feat(catalog): the avatar promo card hosts its videos, audio and fonts on the CDN

* feat(catalog): the avatar promo card tile plays live from its CDN-hosted media

* chore(catalog): the avatar promo card plays live, no allowlist left

* chore(catalog): shorten two comment blocks

* chore(catalog): trim first-party comment blocks to the comment-check limits

* chore(catalog): shorten two frost source comments

* fix(catalog): the Docs tab renders as prose again, and the detail page honours reduced motion

Frame-mode pages carry no prose wrapper, and the detail component sat inside
not-prose, so the Docs slot's headings, paragraphs, links and lists had no
styling at all. The slots now carry their own prose classes and the chrome
around them keeps not-prose.

The recorded clip also gets the reduced-motion guard the docs-snippet check
requires, and the generator reads stability from the source metadata type so
the scripts typecheck passes.

* fix(catalog): docs-tab paragraphs render as blocks

Mintlify emits paragraphs as inline spans, so two paragraphs in the Docs slot ran together.

* fix(ci): drop the duplicate docs_catalog job output

git's line-based auto-merge silently duplicated the outputs key when
main and this branch each added it on non-adjacent lines during the
rebase; oxfmt's yaml parser rejects the repeated map key.

* fix(catalog): close four CodeQL alerts in the frost source

* chore(catalog): allowlist the avatar-promo-card CDN asset deletions, format sync-docs-catalog

check-no-main-deletions.mjs was rejecting 11 local mp4/font files this branch
already deleted in favor of CDN hosting; scripts/sync-docs-catalog.mjs had one
line over the 100-col print width from an earlier edit in this branch.

* fix(catalog): detail tabs use docs prose spacing, Install first; previews skip no-WebGPU runners

* fix(catalog): the docs tab scrolls with the page instead of a capped inner box

* refactor(catalog): split the payload asset and verify scripts into single-purpose helpers

* refactor(catalog): split the preview generator into single-purpose helpers

* ci(catalog): fail when the committed catalog differs from generator output

The docs host serves the committed catalog and nothing regenerates it, so a stale
copy shipped silently. The catalog payloads job now generates into a temp dir and
compares it with the committed tree.

* chore(catalog): regenerate docs/public/catalog with the refactored scripts

One full regeneration from an empty output tree with the current scripts. The tree grows
from 58.4 MB to 65.1 MB. Two hosted assets are about 2 MB each (an avatar png and a wav);
the same bytes are already committed under assets/, so HF_MAX_NONLFS_KB is raised for
this commit only.

* fix(catalog): run the catalog script tests under the runner they are written for

The rebase put three node:test files in the vitest half of test:scripts, where they report
"No test suite found". They now sit in the node --test list.

* fix(catalog): a WebGPU item without an adapter shows its recorded clip and says why

* ci(catalog): the drift check runs from a committed fetch mirror with no network

Generation now serves every font and CDN script fetch from scripts/catalog-fetch-mirror and fails
when a fetch is not in it, even if the caller swallowed the error. CATALOG_FETCH_MIRROR=record
refreshes the mirror from the live network. The docs_catalog filter also watches packages/core,
packages/producer and the mirror, and the 13 re-hashed font files are listed in ALLOWED_DELETIONS.

* chore(catalog): clean up the temp font cache and sort the mirror index without a locale

* fix(catalog): hide Tune when the clip stands in, time out the adapter request, share one check

* fix(catalog): the adapter probe survives a sync throw and a hang; test the clip guard

* fix(catalog): keep the adapter probe inside the component, Mintlify evaluates only exports

* fix(catalog): run the detail and page generator tests in CI; no Tune flash while probing WebGPU

* docs(catalog): credit vendored libraries and make each SKILL.md list what the block installs

CREDITS.md names every vendored dependency with its upstream and licence, and flags the two leaf
textures whose origin is still to be confirmed. Each SKILL.md Files table now comes from the block
manifest and its install and render paths point at compositions/<name>/. A test checks that every
path a SKILL.md names is a manifest file that exists.

* fix(catalog): a declared WebGPU item passes verify by its manifest tag, not by console wording

verify-catalog-payloads forgave a missing adapter only by matching the markup and the message, which
library-reported errors and widgets never satisfy. The webgpu tag in the item manifest is now the
owner: a tagged item ignores its page and console errors, an untagged one gets no forgiveness, and a
marker payload with no html is listed instead of crashing the run.

* docs(catalog): correct the credits per block and guard the mount and render paths

CREDITS.md states the three.js version and vendored-or-CDN status per block, adds d3-delaunay,
Clipper on the CDN and the Google Fonts loads, and lists every texture with no known origin.
The SKILL.md test now also checks the mount and render paths against the manifest composition.

* test(catalog): read each block manifest once in the SKILL.md file test

The two checks shared a copied manifest read, which fallow flagged as a clone with a high score.

* fix(catalog): commit the hosted item files a gitignore rule kept out, and check git not the disk

The compositions/ and *-ad/ ignore rules matched folder names under docs/public/catalog/items,
so 33 hosted fonts, textures and marks were generated but never committed and would 404 on
the docs host. The rules now have a negation for that tree and the files are added.

The drift check read the checkout, where git-ignored files still exist, so it passed locally
and failed only in CI. It now unpacks HEAD with git archive and compares that.

* fix(catalog): a tile keeps its poster until the composition has painted

* fix(catalog): a tagged WebGPU item forgives only the adapter-absent error, and test the wiring

The manifest webgpu tag now decides whether an item may lack an adapter, and the error wording
decides which lines are that absence. Any other page or console error on the item, and every
failed request, still fails. The per-item decision is one exported function the tests drive,
marker payloads are parsed by a tested helper, and the SKILL.md variable counts are checked
against their tables (cuboid-carousel said forty-nine for forty).

* fix(catalog): the pinned group's posters load eagerly at high priority

* fix(catalog): type the tile reveal test so the scripts typecheck passes

* fix(catalog): stop the adapter signature matching an unrelated failed adapter request

failed to request .*adapter also matched errors about other adapters. It now matches only a
request for the WebGPU adapter, so a tagged item cannot hide an unrelated failure behind it.

* test(catalog): a tagged item still fails on an error about some other adapter

* feat(catalog): the install command sits above the preview, as on the live catalog

* fix(catalog): find the install slot through Mintlify's child wrapper

* fix(docs): catalog copy buttons keep their size when the label swaps to Copied

* refactor(docs): name the shown copy label once in the catalog copy button

* fix(docs): primary catalog button keeps a readable label on hover and after copy

* fix(docs): inset the catalog tab strip and tab content to match the boxed panels
2026-09-19 16:53:29 -04:00

496 lines
20 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Share-Sheet Carousel"
description: "A share sheet springs up from the bottom of the phone and cycles previews inside its card on a fast cut rhythm while the blurred ground swaps behind it, ending on an accept tap"
mode: "frame"
---
import { CatalogDetail, CatalogSlot } from "/snippets/catalog-detail.jsx";
import { InstallCommand } from "/snippets/install-command.jsx";
<CatalogDetail
previewSrc="/public/catalog/blocks/share-sheet-carousel.json"
compositionId="share-sheet-carousel"
compositionSrc="compositions/share-sheet-carousel.html"
title="Share-Sheet Carousel"
description="A share sheet springs up from the bottom of the phone and cycles previews inside its card on a fast cut rhythm while the blurred ground swaps behind it, ending on an accept tap"
variables={[{"id":"shareTitle","type":"string","role":"content","label":"Sheet title","description":"Heading at the top of the share sheet.","default":"Share"},{"id":"senderName","type":"string","role":"content","label":"Sender","description":"Name of the brand this video promotes, shown as the sender offering the item. Use the real name of that brand.","portrays":["subject_name"],"default":"HyperFrames"},{"id":"itemLabel","type":"string","role":"content","label":"Item","description":"What the sender is offering, completing the sentence \"… would like to share …\".","default":"a video"},{"id":"stripText","type":"string","role":"content","label":"Brand strip","description":"Positioning line of the brand this video promotes, in small caps beside its logo.","portrays":["subject_tagline"],"default":"OPEN-SOURCE VIDEO ENGINE · SHIP FROM HTML"},{"id":"acceptLabel","type":"string","role":"content","label":"Accept label","description":"Right-hand action button.","default":"Accept"},{"id":"declineLabel","type":"string","role":"content","label":"Decline label","description":"Left-hand action button.","default":"Decline"},{"id":"slideImage1","type":"image","role":"content","label":"Slide image 1","description":"First carousel image; also fills the blurred background.","default":"assets/slide-01.jpg"},{"id":"slideImage2","type":"image","role":"content","label":"Slide image 2","description":"Second carousel image; also fills the blurred background.","default":"assets/slide-02.jpg"},{"id":"slideImage3","type":"image","role":"content","label":"Slide image 3","description":"Third carousel image; also fills the blurred background.","default":"assets/slide-03.jpg"},{"id":"slideImage4","type":"image","role":"content","label":"Slide image 4","description":"Fourth carousel image; also fills the blurred background.","default":"assets/slide-04.jpg"},{"id":"brandLogo","type":"image","role":"content","label":"Brand logo","description":"Transparent horizontal wordmark of the brand this video promotes, in the preview strip.","portrays":["subject_logo"],"default":"assets/hyperframes-logo-black.svg"}]}
meta={{"duration":7.2333,"width":1080,"height":1920,"category":"Showcases","badge":"Stable","codeLines":392}}
attribution={{"author":"Miao Yang","path":"registry/blocks/share-sheet-carousel","tags":["showcase","mock-ui","share-sheet","vertical","ad-template"]}}
hasCode
rawUrl="https://raw.githubusercontent.com/heygen-com/hyperframes/main/registry/blocks/share-sheet-carousel/share-sheet-carousel.html"
>
<CatalogSlot slot="code">
```html share-sheet-carousel.html
<!doctype html>
<html
lang="en"
data-composition-variables='[
{ "id": "shareTitle", "type": "string", "role": "content", "label": "Sheet title", "description": "Heading at the top of the share sheet.", "default": "Share" },
{ "id": "senderName", "type": "string", "role": "content", "label": "Sender", "description": "Name of the brand this video promotes, shown as the sender offering the item. Use the real name of that brand.", "portrays": ["subject_name"], "default": "HyperFrames" },
{ "id": "itemLabel", "type": "string", "role": "content", "label": "Item", "description": "What the sender is offering, completing the sentence \"… would like to share …\".", "default": "a video" },
{ "id": "stripText", "type": "string", "role": "content", "label": "Brand strip", "description": "Positioning line of the brand this video promotes, in small caps beside its logo.", "portrays": ["subject_tagline"], "default": "OPEN-SOURCE VIDEO ENGINE · SHIP FROM HTML" },
{ "id": "acceptLabel", "type": "string", "role": "content", "label": "Accept label", "description": "Right-hand action button.", "default": "Accept" },
{ "id": "declineLabel", "type": "string", "role": "content", "label": "Decline label", "description": "Left-hand action button.", "default": "Decline" },
{ "id": "slideImage1", "type": "image", "role": "content", "label": "Slide image 1", "description": "First carousel image; also fills the blurred background.", "default": "assets/slide-01.jpg" },
{ "id": "slideImage2", "type": "image", "role": "content", "label": "Slide image 2", "description": "Second carousel image; also fills the blurred background.", "default": "assets/slide-02.jpg" },
{ "id": "slideImage3", "type": "image", "role": "content", "label": "Slide image 3", "description": "Third carousel image; also fills the blurred background.", "default": "assets/slide-03.jpg" },
{ "id": "slideImage4", "type": "image", "role": "content", "label": "Slide image 4", "description": "Fourth carousel image; also fills the blurred background.", "default": "assets/slide-04.jpg" },
{ "id": "brandLogo", "type": "image", "role": "content", "label": "Brand logo", "description": "Transparent horizontal wordmark of the brand this video promotes, in the preview strip.", "portrays": ["subject_logo"], "default": "assets/hyperframes-logo-black.svg" }
]'
>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=1080, height=1920" />
<title>Share-Sheet Carousel</title>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: #000;
}
#ssc-root {
position: relative;
width: 1080px;
height: 1920px;
overflow: hidden;
background: #000;
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}
#ssc-scene {
position: absolute;
inset: 0;
}
/* ---------------- fullscreen grounds ---------------- */
/* the ground behind the sheet is the current slide blown up and blurred,
exactly as the source footage was */
.ssc-bg {
position: absolute;
left: -80px;
top: -80px;
width: 1240px;
height: 2080px;
object-fit: cover;
filter: blur(46px) saturate(1.1) brightness(0.88);
}
/* ---------------- the share sheet ---------------- */
/* geometry measured from the reference: 668x974 card at (206,473),
spring entry sampled frame-by-frame (spec provenance: measured) */
#ssc-card {
position: absolute;
left: 206px;
top: 473px;
width: 668px;
height: 974px;
background: #f9f9f9;
border-radius: 34px;
box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
opacity: 0;
}
#ssc-cardclipper {
position: absolute;
inset: 0;
border-radius: 34px;
overflow: hidden;
}
#ssc-title {
position: absolute;
top: 49px;
left: 0;
width: 100%;
text-align: center;
font-size: 44px;
font-weight: 600;
color: #101010;
line-height: 44px;
letter-spacing: 0.2px;
}
#ssc-subtitle {
position: absolute;
top: 117px;
left: 0;
width: 100%;
text-align: center;
font-size: 29px;
font-weight: 400;
color: #313131;
line-height: 29px;
}
#ssc-subtitle b {
font-weight: 700;
}
#ssc-imagebox {
position: absolute;
left: 43px;
top: 191px;
width: 582px;
height: 632px;
border-radius: 24px;
overflow: hidden;
}
.ssc-slide {
position: absolute;
left: 0;
top: 0;
width: 582px;
height: 476px;
object-fit: cover;
}
/* the brand strip riding the bottom of the preview, as the reference had */
#ssc-strip {
position: absolute;
left: 0;
top: 476px;
width: 582px;
height: 156px;
background: #f2ecdf;
display: grid;
place-items: center;
align-content: center;
gap: 14px;
}
#ssc-strip img {
height: 38px;
display: block;
}
#ssc-strip-text {
font-size: 17px;
font-weight: 600;
letter-spacing: 2.4px;
color: #4a4438;
text-transform: uppercase;
}
#ssc-hdivider {
position: absolute;
left: 0;
top: 859px;
width: 100%;
height: 1.5px;
background: #dfdfdf;
}
#ssc-vdivider {
position: absolute;
left: 333px;
top: 861px;
width: 1.5px;
bottom: 0;
background: #dfdfdf;
}
#ssc-presscell {
position: absolute;
left: 335px;
top: 861px;
right: 0;
bottom: 0;
background: #e9e9e9;
border-radius: 0 0 34px 0;
opacity: 0;
}
.ssc-btn {
position: absolute;
top: 861px;
bottom: 0;
display: grid;
place-items: center;
font-size: 34px;
}
#ssc-decline {
left: 0;
width: 333px;
color: #6f6f73;
font-weight: 400;
}
#ssc-accept {
left: 335px;
right: 0;
color: var(--hf-ui-accent, #087a57);
font-weight: 600;
}
</style>
</head>
<body>
<div
id="ssc-root"
data-composition-id="share-sheet-carousel"
data-start="0"
data-width="1080"
data-height="1920"
data-duration="7.2333"
data-fps="30"
>
<section
id="ssc-scene"
class="clip"
data-start="0"
data-duration="7.2333"
data-track-index="1"
>
<img
class="ssc-bg"
id="ssc-bg-1"
data-var-src="slideImage1"
src="assets/slide-01.jpg"
alt=""
style="opacity: 1"
/>
<img
class="ssc-bg"
id="ssc-bg-2"
data-var-src="slideImage2"
src="assets/slide-02.jpg"
alt=""
style="opacity: 0"
/>
<img
class="ssc-bg"
id="ssc-bg-3"
data-var-src="slideImage3"
src="assets/slide-03.jpg"
alt=""
style="opacity: 0"
/>
<img
class="ssc-bg"
id="ssc-bg-4"
data-var-src="slideImage4"
src="assets/slide-04.jpg"
alt=""
style="opacity: 0"
/>
<div id="ssc-card">
<div id="ssc-cardclipper">
<div id="ssc-title">Share</div>
<div id="ssc-subtitle"><b>HyperFrames</b>&nbsp;would like to share a video</div>
<div id="ssc-imagebox">
<img
class="ssc-slide"
id="ssc-slide-1"
data-var-src="slideImage1"
src="assets/slide-01.jpg"
alt=""
style="opacity: 1"
/>
<img
class="ssc-slide"
id="ssc-slide-2"
data-var-src="slideImage2"
src="assets/slide-02.jpg"
alt=""
style="opacity: 0"
/>
<img
class="ssc-slide"
id="ssc-slide-3"
data-var-src="slideImage3"
src="assets/slide-03.jpg"
alt=""
style="opacity: 0"
/>
<img
class="ssc-slide"
id="ssc-slide-4"
data-var-src="slideImage4"
src="assets/slide-04.jpg"
alt=""
style="opacity: 0"
/>
<div id="ssc-strip">
<img
data-var-src="brandLogo"
src="assets/hyperframes-logo-black.svg"
alt="Brand logo"
/>
<div id="ssc-strip-text">OPEN-SOURCE VIDEO ENGINE · SHIP FROM HTML</div>
</div>
</div>
<div id="ssc-hdivider"></div>
<div id="ssc-presscell"></div>
<div id="ssc-vdivider"></div>
<div id="ssc-decline" class="ssc-btn">Decline</div>
<div id="ssc-accept" class="ssc-btn">Accept</div>
</div>
</div>
</section>
</div>
<script>
(function () {
"use strict";
/* -------- variables -------- */
var vars =
window.__hyperframes && typeof window.__hyperframes.getVariables === "function"
? window.__hyperframes.getVariables()
: {};
function text(value, fallback) {
if (typeof value !== "string") return fallback;
var t = value.trim();
if (!t) return fallback;
return t.length > 60 ? t.slice(0, 60) : t;
}
document.getElementById("ssc-title").textContent = text(vars.shareTitle, "Share");
var subtitle = document.getElementById("ssc-subtitle");
subtitle.innerHTML = "";
var sender = document.createElement("b");
sender.textContent = text(vars.senderName, "HyperFrames");
subtitle.appendChild(sender);
subtitle.appendChild(
document.createTextNode(" would like to share " + text(vars.itemLabel, "a video")),
);
document.getElementById("ssc-strip-text").textContent = text(
vars.stripText,
"OPEN-SOURCE VIDEO ENGINE · SHIP FROM HTML",
);
document.getElementById("ssc-decline").textContent = text(vars.declineLabel, "Decline");
document.getElementById("ssc-accept").textContent = text(vars.acceptLabel, "Accept");
/* -------- timeline: spring entry and cut rhythm measured from the reference -------- */
window.__timelines = window.__timelines || {};
var tl = gsap.timeline({ paused: true });
tl.set("#ssc-card", { y: 1450, autoAlpha: 0 }, 0.001);
tl.set("#ssc-presscell", { autoAlpha: 0 }, 0.001);
/* sheet spring-up: frame-sampled from the reference, kept verbatim */
var SPRING = [
[0.056667, 1198, 0.13],
[0.09, 903, 0.21],
[0.123333, 648, 0.36],
[0.156667, 437, 0.43],
[0.19, 262, 0.5],
[0.223333, 120, 0.62],
[0.256667, 8, 0.78],
[0.29, -76, 0.89],
[0.323333, -138, 1.0],
[0.356667, -175, null],
[0.39, -191, null],
[0.423333, -192, null],
[0.456667, -181, null],
[0.49, -159, null],
[0.523333, -131, null],
[0.556667, -100, null],
[0.59, -68, null],
[0.623333, -41, null],
[0.656667, -18, null],
[0.69, -5, null],
[0.723333, 0, null],
];
SPRING.forEach(function (step) {
var props = { y: step[1] };
if (step[2] !== null) props.autoAlpha = step[2];
tl.set("#ssc-card", props, step[0]);
});
/* cut rhythm: fourteen swaps, cycling the four stills */
var SLIDE_COUNT = 4;
var CUTS = [
0.99, 1.356667, 1.69, 2.023333, 2.356667, 2.69, 3.09, 3.456667, 3.79, 4.123333, 4.456667,
4.79, 5.156667,
];
var current = 0;
CUTS.forEach(function (t, i) {
var next = (i + 1) % SLIDE_COUNT;
tl.set(["#ssc-bg-" + (current + 1), "#ssc-slide-" + (current + 1)], { autoAlpha: 0 }, t);
tl.set(["#ssc-bg-" + (next + 1), "#ssc-slide-" + (next + 1)], { autoAlpha: 1 }, t);
current = next;
});
/* accept press: cell highlights and the card dips, then releases */
tl.set("#ssc-card", { y: 3 }, 6.323333);
tl.set("#ssc-presscell", { autoAlpha: 1 }, 6.323333);
tl.set("#ssc-card", { y: 0 }, 6.656667);
tl.set("#ssc-presscell", { autoAlpha: 0 }, 6.656667);
tl.set({}, {}, 7.2333);
window.__timelines["share-sheet-carousel"] = tl;
})();
</script>
</body>
</html>
```
</CatalogSlot>
<CatalogSlot slot="install">
<InstallCommand command="npx hyperframes add share-sheet-carousel" item="share-sheet-carousel" />
That writes `compositions/share-sheet-carousel.html`, plus 6 supporting files under `assets/`.
</CatalogSlot>
<CatalogSlot slot="docs">
## Add it to your video
It runs for 7.2333 seconds at 1080×1920. Paste this into your composition:
```html index.html
<div
data-composition-id="share-sheet-carousel"
data-composition-src="compositions/share-sheet-carousel.html"
data-start="0"
data-duration="7.2333"
data-track-index="1"
data-width="1080"
data-height="1920"
></div>
```
Move it in time with `data-start`. Put it on a different timeline row with
`data-track-index`. See [data attributes](/concepts/data-attributes) for the rest.
## Variables
Every one of these has a default, so the piece works untouched. Set the ones you
want to change on the element:
| Variable | Default | Accepts | What it does |
| --- | --- | --- | --- |
| `shareTitle` | `Share` | string | Heading at the top of the share sheet. |
| `senderName` | `HyperFrames` | string | Name of the brand this video promotes, shown as the sender offering the item. Use the real name of that brand. |
| `itemLabel` | `a video` | string | What the sender is offering, completing the sentence "… would like to share …". |
| `stripText` | `OPEN-SOURCE VIDEO ENGINE · SHIP FROM HTML` | string | Positioning line of the brand this video promotes, in small caps beside its logo. |
| `acceptLabel` | `Accept` | string | Right-hand action button. |
| `declineLabel` | `Decline` | string | Left-hand action button. |
| `slideImage1` | `assets/slide-01.jpg` | image | First carousel image; also fills the blurred background. |
| `slideImage2` | `assets/slide-02.jpg` | image | Second carousel image; also fills the blurred background. |
| `slideImage3` | `assets/slide-03.jpg` | image | Third carousel image; also fills the blurred background. |
| `slideImage4` | `assets/slide-04.jpg` | image | Fourth carousel image; also fills the blurred background. |
| `brandLogo` | `assets/hyperframes-logo-black.svg` | image | Transparent horizontal wordmark of the brand this video promotes, in the preview strip. |
Set them with `data-variable-values` on the element that mounts it. These are the
defaults, so this behaves exactly like the preview above until you change one:
```html wrap
<div
data-composition-id="share-sheet-carousel"
data-composition-src="compositions/share-sheet-carousel.html"
data-variable-values='{"shareTitle":"Share","senderName":"HyperFrames","itemLabel":"a video","stripText":"OPEN-SOURCE VIDEO ENGINE · SHIP FROM HTML","acceptLabel":"Accept","declineLabel":"Decline","slideImage1":"assets/slide-01.jpg","slideImage2":"assets/slide-02.jpg","slideImage3":"assets/slide-03.jpg","slideImage4":"assets/slide-04.jpg","brandLogo":"assets/hyperframes-logo-black.svg"}'
></div>
```
{/* hf:generated-footer */}
Tagged `showcase` `mock-ui` `share-sheet` `vertical` `ad-template`.
Created by Miao Yang.
## Related topics
- [Browse the complete Catalog](/catalog)
- [Add assets and Catalog items in Studio](/studio/assets-and-blocks)
- [Build a richer composition](/go-further)
</CatalogSlot>
</CatalogDetail>