ReferencePremium
CoullWorks Blog for Laravel front ends reference
The front-end modes, Blade components, overridable views and Inertia stub files.
Updated 16 November 2026Back to the package pageBuy
Choosing a front end#
- coullworks-blog.frontend: blade / livewire / inertia / none (headless). Invalid value throws InvalidArgumentException.
- Front end: none: Headless: only the JSON:API (api.enabled) and sitemap/feeds; admin toolkit still installed.
- Nine workbench profiles: Eight profiles draw HTML; headless checks JSON only.
- *Design tokens (--cw- in tokens.css)**: Colour, type scale, spacing tokens; change a token and every page follows.
- Language strings: 69 UI strings (ui.php) and 7 Livewire strings (livewire.php), namespace coullworks-blog::ui. Only an English file ships: other languages are host-provided.
- Inertia page props: IndexProps, ListingProps, PostProps (template, rail, related), SearchProps (snippet), AuthorProps, SidebarProps (widgets), Cards; TypeScript from blog:inertia:types.
- Host files: stubs/inertia/host/controller.stub and routes.stub; --domain for per-domain prefixes.
- Headless reading: frontend=none; same JSON:API; sitemap and feeds still served; no Blade/Livewire routes.
Blade components#
Applies to every row below: Present in both view sets with the same element tree.
| Component | Props and use |
|---|---|
<x-cw::author-box> | Author box under/beside the post. Props: authors, locale. |
<x-cw::banner> | Banner markup used by the three banner blocks. Props: d, cwKind. |
<x-cw::card> | Post card; stacks cw-card-meta. Props: post, level=2, position=9, row=false, term. |
<x-cw::cards> | Grid/list of cards. Props: posts, mode=grid, term. |
<x-cw::category-nav> | Category filter nav (listing.category_nav). Props: items, locale, currentId, allCurrent. |
<x-cw::consent-placeholder> | Consent placeholder for embed/video. Props: info, aspect=16:9, poster. |
<x-cw::crumbs> | Breadcrumbs. Props: items. |
<x-cw::language-switcher> | Language switcher nav (coullworks-blog.language_switcher). Props: links (locale, label, url, current). See Language switcher. |
<x-cw::head> | Head tags (SEO output, JSON-LD); pushes to cw-head. Props: seo, blog, locale. |
<x-cw::list> | Listing wrapper (replaceable via blade.components.list). Props: posts, pager, more, mode, term. |
<x-cw::load-more> | Load-more link (blade.load_more). Props: pager. |
<x-cw::marked> | Search snippet with <mark> highlights. Props: segments. |
<x-cw::pagination> | Numbered pagination. Props: pager. |
<x-cw::search-form> | Search box. Props: action, term. |
<x-cw::share> | Share links (blade.share). Props: url, title. |
<x-cw::sidebar> | Sidebar of widgets (widgets.sidebar). Props: blog, locale, widgets. |
<x-cw::state.empty> | Empty state. Props: blog, locale, message. |
<x-cw::state.error> | Error state. Props: message. |
<x-cw::state.loading> | Loading state. |
<x-cw::takeaways-body> | Takeaways list used by rail and block. |
<x-cw::widget.archive> | Archive widget. Props: blog, locale. |
<x-cw::widget.categories> | Categories widget (uses widget/category-node). Props: blog, locale. |
<x-cw::widget.category-node> | Recursive category node. |
<x-cw::widget.recent-posts> | Recent posts widget (blade.recent). Props: blog, locale, limit. |
<x-cw::widget.search> | Search widget. Props: blog, locale. |
<x-cw::widget.tags> | Tags widget. Props: blog, locale. |
Views you can override#
| View | What it is |
|---|---|
layouts/default | Default layout. Overridable: a copy in resources/views/vendor/coullworks-blog wins. |
components/language-switcher | The language switcher view. Overridable: a copy in resources/views/vendor/coullworks-blog/components wins. The default layout draws it in the header. |
partials/comment | Comment partial (namespace coullworks-comments). |
partials/comments | Comments partial (namespace coullworks-comments). |
partials/standalone-head | Standalone head (namespace coullworks-comments). |
partials/unsubscribe | Unsubscribe partial (namespace coullworks-comments). |
partials/unsubscribed | Unsubscribed partial (namespace coullworks-comments). |
livewire/{tailwind,bootstrap}/posts | The posts component view (listing with load more or pagination). Publish with the tags cwb-livewire-views-tailwind or cwb-livewire-views-bootstrap. |
livewire/{tailwind,bootstrap}/search-box | The search box with suggestions. Publish with the tags cwb-livewire-views-tailwind or cwb-livewire-views-bootstrap. |
livewire/shared/components/list/load-more/pagination/search | The Livewire replacements for the blade.components entries (list, load more, pagination, search). Publish with the tags cwb-livewire-views-tailwind or cwb-livewire-views-bootstrap. |
analytics/views/{tailwind,bootstrap}/analytics | Reading time, popular and related lists (publish tag cwb-analytics-views). |
ai/views/{tailwind,bootstrap}/disclosure | AI disclosure line (publish tag cwb-ai-views). |
Inertia stub files#
Applies to every row below: Present in React and Vue stubs for both styles
| File | What it is |
|---|---|
page Category | React (.tsx) and Vue (.vue) x Tailwind and Bootstrap = 4 stub sets; page prefix inertia.page_prefix "blog/pages/" |
page Archive | React (.tsx) and Vue (.vue) x Tailwind and Bootstrap = 4 stub sets; page prefix inertia.page_prefix "blog/pages/" |
page Author | React (.tsx) and Vue (.vue) x Tailwind and Bootstrap = 4 stub sets; page prefix inertia.page_prefix "blog/pages/" |
page Tag | React (.tsx) and Vue (.vue) x Tailwind and Bootstrap = 4 stub sets; page prefix inertia.page_prefix "blog/pages/" |
page Search | React (.tsx) and Vue (.vue) x Tailwind and Bootstrap = 4 stub sets; page prefix inertia.page_prefix "blog/pages/" |
component Sidebar | |
component StateError | |
component NotFound | |
component AuthorBox | |
component ConsentGate | |
component StateEmpty | |
component CategoryNav | |
component Extras | |
component Layout | |
component LanguageSwitcher | Reads blog.languages; rendered by Layout in the header. |
component CopyLink | |
component ConsentRevoke | |
component Snippet | |
component StateLoading | |
component Card | |
component ListingView | |
component Banner | |
component Share | |
component SeoHead | |
component PostView | |
component Rail | |
component Pagination | |
component TocList | |
component Progress | |
component Crumbs | |
component CategoryTree (Vue only) | Present in React and Vue stubs for both styles (Vue has CategoryTree, React does not) |
support: Block | Dispatches by block type |
support: registry.ts | Register custom block components |
support: builtins.ts | The 23 built-in blocks |
support: extras/registry.ts | Register extras renderers (comments, analytics, AI disclosure) |
support: lib/* (toc, strings, embed, classes, format, codeHighlight, consent) | Helpers |
support: types/* (payloads, props, blocks) | TypeScript types; regenerate with blog:inertia:types |







