Skip to content
Brok UI

Loading…

No results

Blog Post

Open source

Full blog article pages — an inline hero article, a long-form body with table of contents, and a floating-header layout with related posts.

Preview

resources/views/pages/blog-post-related.blade.php Blade
@props([])

<div class="min-h-screen bg-background text-foreground">
    <x-blocks.header-navbar shape="pill" />
    <main>
        <x-blocks.rich-text-article />
        <x-blocks.blog-image-grid :media="false" />
    </main>
    <x-blocks.footer-minimal />
</div>

Installation

terminal
php artisan ui:add pages/blog-post-related

Registry contract

Install confidence

php artisan ui:add pages/blog-post-related 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.3
License
open
Stability
stable
Contract
v1
Foundation
≥ 1.0.0
Type Generated target
blade resources/views/pages/blog-post-related.blade.php

Registry dependencies

blocks/header-navbar blocks/rich-text-article blocks/blog-image-grid blocks/footer-minimal

Package dependencies

composer: jml/brok:^0.2

Use with AI

A brief for your coding agent: what the page is, the install command, how to render it, its props and the rules. Copy it, or open a prompt about this page in an assistant.

blog-post-related.md
# Brok UI page: Blog Post 03 (`blog-post-related`)

A blog article with a floating header, article prose, a related-posts grid and a minimal footer.

Brok UI is a Laravel Blade registry. `ui:add` copies this page into the app as plain Blade the app owns; it composes installed `<brok:*>` primitives and semantic design tokens.

## Install

```bash
php artisan ui:add pages/blog-post-related
```

## Render it

```blade
<x-pages.blog-post-related />
```

## Use when

- A blog article page with a floating header, article prose, a related-posts grid and a minimal footer.
- It composes blocks/header-navbar, blocks/rich-text-article, blocks/blog-image-grid and blocks/footer-minimal.

## Avoid when

- Wanting a newsletter call-to-action instead of related posts; use blog-post-inline or blog-post-with-toc instead.

## Rules

- Render the installed page with `<x-pages.blog-post-related />` 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/pages/blog-post-related
- Registry JSON (files, props, contract): https://brokui.dev/r/open/pages/blog-post-related.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

  • A blog article page with a floating header, article prose, a related-posts grid and a minimal footer.
  • It composes blocks/header-navbar, blocks/rich-text-article, blocks/blog-image-grid and blocks/footer-minimal.

Avoid when

  • Wanting a newsletter call-to-action instead of related posts; use blog-post-inline or blog-post-with-toc instead.

Anti-patterns

  • Do not replace semantic props with conflicting utility classes.
  • Do not remove labels, focus styles, or state attributes.

Usage

Render the page as a component, or wire it to a route. Pass data where useful:

resources/views/welcome.blade.php Blade
<x-pages.blog-post-related />

Built from blocks & primitives

This page 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 pages.

resources/views/pages/blog-post-related.blade.php Blade
@props([])

<div class="min-h-screen bg-background text-foreground">
    <x-blocks.header-navbar shape="pill" />
    <main>
        <x-blocks.rich-text-article />
        <x-blocks.blog-image-grid :media="false" />
    </main>
    <x-blocks.footer-minimal />
</div>

Ownership & lifecycle

Owner, release state, review evidence and adoption for this item.
Owner
Platform UI (@JoshJML)
Current version
1.0.3
Status
Stable
License
open
Deprecation
Not deprecated
Contract
v1
Foundation
≥ 1.0.0