Sticky Content Gallery
Scroll-pinned storytelling — a sticky text column beside a scrolling media gallery.
Preview
@props([
'eyebrow' => 'Modern Minimal Carry',
'headline' => 'Designed to move with your day',
'subcopy' => 'A considered edit of structured everyday pieces — clean silhouettes, honest materials and quiet detailing that carry from the commute to the weekend.',
'cta' => ['label' => 'Explore the collection', 'href' => '#'],
'tiles' => [
['aspect' => 'aspect-[4/5]', 'caption' => 'The Commuter Tote'],
['aspect' => 'aspect-square', 'caption' => 'Field Backpack'],
['aspect' => 'aspect-[4/5]', 'caption' => 'Weekender Duffle'],
['aspect' => 'aspect-[3/4]', 'caption' => 'Everyday Crossbody'],
],
])
{{--
sticky-content-gallery-01 — "Modern Minimal Carry" scroll-pinned gallery.
A two-column editorial layout: the start column (display heading, copy, CTA)
is `position: sticky` on lg+ and stays pinned while the end column — a vertical
stack of token `bg-muted` media tiles (no external images) — scrolls past. On
mobile it collapses to a single stacked column (sticky disabled). Pure CSS
sticky, no JS. Composes <x-ui.button>.
Semantic tokens only, logical spacing, WCAG AA, RTL-safe.
--}}
<x-ui.section
space="none" {{ $attributes }}
data-slot="sticky-content-gallery"
aria-label="{{ __($headline) }}"
>
<div class="mx-auto max-w-7xl px-6 py-16 sm:px-8 sm:py-20 lg:px-12 lg:py-28">
<div class="grid grid-cols-1 gap-12 lg:grid-cols-2 lg:gap-16">
{{-- ── Sticky editorial column ── --}}
<div class="lg:sticky lg:top-24 lg:self-start">
<div class="flex max-w-md flex-col items-start gap-6">
@if ($eyebrow)
<p class="font-body text-sm uppercase tracking-[0.3em] text-muted-foreground">
{{ __($eyebrow) }}
</p>
@endif
<h2 class="font-heading text-4xl font-normal leading-[1.05] tracking-tight sm:text-5xl">
{{ __($headline) }}
</h2>
@if ($subcopy)
<p class="font-body text-base leading-relaxed text-muted-foreground">
{{ __($subcopy) }}
</p>
@endif
@if ($cta)
<div class="mt-2">
<x-ui.button :href="$cta['href']" :withArrow="true">
{{ __($cta['label']) }}
</x-ui.button>
</div>
@endif
</div>
</div>
{{-- ── Scrolling media stack ── --}}
<div class="flex flex-col gap-8 sm:gap-10">
@foreach ($tiles as $tile)
<figure class="flex flex-col gap-4">
<div
class="w-full overflow-hidden rounded-lg border border-border bg-muted {{ $tile['aspect'] ?? 'aspect-[4/5]' }}"
aria-hidden="true"
></div>
@if (! empty($tile['caption']))
<figcaption class="font-body text-sm text-muted-foreground">
{{ __($tile['caption']) }}
</figcaption>
@endif
</figure>
@endforeach
</div>
</div>
</div>
</x-ui.section>
Installation
php artisan ui:add blocks/sticky-content-gallery-split
Registry contract
Install confidence
php artisan ui:add blocks/sticky-content-gallery-split
writes only the generated targets below. The CLI validates each file hash before writing and
prompts before replacing local changes unless --force is used.
- Version
- 1.0.4
- License
- open
- Stability
- stable
- Contract
- v1
- Foundation
- ≥ 1.0.0
| Type | Generated target |
|---|---|
| blade | resources/views/blocks/sticky-content-gallery-split.blade.php |
Registry dependencies
Package dependencies
composer: jml/brok:^0.2
Use with AI
A brief for your coding agent: what the block is, the install command, how to render it, its props and the rules. Copy it, or open a prompt about this block in an assistant.
# Brok UI block: Sticky Content Gallery (`sticky-content-gallery-split`)
A scroll-pinned editorial section — one column with a display heading, copy and CTA stays sticky while the adjacent column of token-placeholder media tiles scrolls past, collapsing to a single column on mobile.
Brok UI is a Laravel Blade registry. `ui:add` copies this block into the app as plain Blade the app owns; it composes installed `<brok:*>` primitives and semantic design tokens.
## Install
```bash
php artisan ui:add blocks/sticky-content-gallery-split
```
## Render it
```blade
<x-blocks.sticky-content-gallery-split />
```
## Props
- `eyebrow` (string, default `Modern Minimal Carry`) — Small label shown above the heading.
- `headline` (string, default `Designed to move with your day`) — Primary headline.
- `subcopy` (string, default `A considered edit of structured everyday pieces — clean silhouettes, honest materials and quiet detailing that carry from the commute to the weekend.`) — Supporting copy under the headline.
- `cta` (array, default `['label' => 'Explore the collection', 'href' => '#']`) — Call-to-action label, or a {label, href} pair.
- `tiles` (array, default `[…]`) — Media tiles in the scrolling column, each with an aspect ratio and caption.
## Use when
- Building an editorial section where copy stays pinned while a column of media tiles scrolls past beside it.
- Wanting storytelling layouts with scroll-driven emphasis and no JavaScript.
## Avoid when
- Wanting scroll-triggered content swapping instead of a pinned static column; use scroll-reveal instead.
## Rules
- Render the installed block with `<x-blocks.sticky-content-gallery-split />` and pass data through its props; edit the copied file only for structural changes.
- Keep the semantic design tokens (`bg-background`, `text-muted-foreground`); never swap in raw colour utilities.
- Keep the `data-slot` attributes and the logical (start/end) spacing so the markup still mirrors under `dir="rtl"`.
## Links
- Docs: https://brokui.dev/blocks/sticky-content-gallery-split
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/sticky-content-gallery-split.json
Working in Claude Code, Cursor or Codex? Give the agent the whole registry through the MCP server or the Brok UI skill.
Guidance
Use when
- Building an editorial section where copy stays pinned while a column of media tiles scrolls past beside it.
- Wanting storytelling layouts with scroll-driven emphasis and no JavaScript.
Avoid when
- Wanting scroll-triggered content swapping instead of a pinned static column; use scroll-reveal instead.
Anti-patterns
- Do not replace semantic props with conflicting utility classes.
- Do not remove labels, focus styles, or state attributes.
- Anatomy
Usage
Render the block as a component, passing data where useful:
<x-blocks.sticky-content-gallery-split />
Built from primitives
This block composes installed <brok:*> primitives and semantic design
tokens only — it does not reimplement any primitive. Re-theme it (light, dark, admin, customer) by
editing CSS variables; flip the preview to RTL to confirm it mirrors.
Source
The exact, editable file ui:add writes
into your app. The preview above renders this same source — there are no preview-only blocks.
@props([
'eyebrow' => 'Modern Minimal Carry',
'headline' => 'Designed to move with your day',
'subcopy' => 'A considered edit of structured everyday pieces — clean silhouettes, honest materials and quiet detailing that carry from the commute to the weekend.',
'cta' => ['label' => 'Explore the collection', 'href' => '#'],
'tiles' => [
['aspect' => 'aspect-[4/5]', 'caption' => 'The Commuter Tote'],
['aspect' => 'aspect-square', 'caption' => 'Field Backpack'],
['aspect' => 'aspect-[4/5]', 'caption' => 'Weekender Duffle'],
['aspect' => 'aspect-[3/4]', 'caption' => 'Everyday Crossbody'],
],
])
{{--
sticky-content-gallery-01 — "Modern Minimal Carry" scroll-pinned gallery.
A two-column editorial layout: the start column (display heading, copy, CTA)
is `position: sticky` on lg+ and stays pinned while the end column — a vertical
stack of token `bg-muted` media tiles (no external images) — scrolls past. On
mobile it collapses to a single stacked column (sticky disabled). Pure CSS
sticky, no JS. Composes <x-ui.button>.
Semantic tokens only, logical spacing, WCAG AA, RTL-safe.
--}}
<x-ui.section
space="none" {{ $attributes }}
data-slot="sticky-content-gallery"
aria-label="{{ __($headline) }}"
>
<div class="mx-auto max-w-7xl px-6 py-16 sm:px-8 sm:py-20 lg:px-12 lg:py-28">
<div class="grid grid-cols-1 gap-12 lg:grid-cols-2 lg:gap-16">
{{-- ── Sticky editorial column ── --}}
<div class="lg:sticky lg:top-24 lg:self-start">
<div class="flex max-w-md flex-col items-start gap-6">
@if ($eyebrow)
<p class="font-body text-sm uppercase tracking-[0.3em] text-muted-foreground">
{{ __($eyebrow) }}
</p>
@endif
<h2 class="font-heading text-4xl font-normal leading-[1.05] tracking-tight sm:text-5xl">
{{ __($headline) }}
</h2>
@if ($subcopy)
<p class="font-body text-base leading-relaxed text-muted-foreground">
{{ __($subcopy) }}
</p>
@endif
@if ($cta)
<div class="mt-2">
<x-ui.button :href="$cta['href']" :withArrow="true">
{{ __($cta['label']) }}
</x-ui.button>
</div>
@endif
</div>
</div>
{{-- ── Scrolling media stack ── --}}
<div class="flex flex-col gap-8 sm:gap-10">
@foreach ($tiles as $tile)
<figure class="flex flex-col gap-4">
<div
class="w-full overflow-hidden rounded-lg border border-border bg-muted {{ $tile['aspect'] ?? 'aspect-[4/5]' }}"
aria-hidden="true"
></div>
@if (! empty($tile['caption']))
<figcaption class="font-body text-sm text-muted-foreground">
{{ __($tile['caption']) }}
</figcaption>
@endif
</figure>
@endforeach
</div>
</div>
</div>
</x-ui.section>
Ownership & lifecycle
Owner, release state, review evidence and adoption for this item.
- Owner
- Platform UI (@JoshJML)
- Current version
-
1.0.4 - Status
- Stable
- License
-
open - Deprecation
- Not deprecated
- Contract
-
v1 - Foundation
-
≥ 1.0.0