Skip to content
ui8kit

component / components

Post Outline

Post Outline component

Install

npx ui8kit add post-outline

Pulls in: compose, group, kit-box, kit-text, lucide-icon, menu-entry, post-card, post-split, stack, text, utils

Preview

Mar 18, 2026

6 min read

12.8K views

Related

Set a page weight budgetShip smaller picturesCache what does not change

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-cdn
npx ui8kit add post-outline
components/post-outline.svelte
<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->
<!-- The facts of a post in a column (author, date, minutes, views), then the related reading as links. -->
<script lang="ts" module>
  import type { Snippet } from "svelte";
  import type { Post } from "../blocks/post-card.types";
  import type { PostExtras, PostSplitLabels } from "../blocks/post-split.types";

  export type PostOutlineProps = {
    post: Post;
    extras: PostExtras;
    labels: PostSplitLabels;
  };
</script>

<script lang="ts">
  import Group from "../compose/Group.svelte";
  import LucideIcon from "../icons/LucideIcon.svelte";
  import Stack from "../compose/Stack.svelte";
  import Text from "../compose/Text.svelte";
  import MenuEntry from "../components/menu-entry.svelte";
  import { tpl } from "../utils";

  let { post, extras, labels }: PostOutlineProps = $props();
</script>

<Stack gap="6" align="stretch" data-slot="post-outline">
  <Stack gap="2" align="start" class="text-muted-foreground">
    <Group gap="2" align="center">
      <LucideIcon name="user" size={16} />
      <Text size="sm">
        {post.author}
      </Text>
    </Group>
    <Group gap="2" align="center">
      <LucideIcon name="calendar" size={16} />
      <Text size="sm">
        {post.date}
      </Text>
    </Group>
    <Group gap="2" align="center">
      <LucideIcon name="clock" size={16} />
      <Text size="sm">
        {tpl(labels.minutes, post.minutes)}
      </Text>
    </Group>
    <Group gap="2" align="center">
      <LucideIcon name="eye" size={16} />
      <Text size="sm">
        {tpl(labels.views, extras.views)}
      </Text>
    </Group>
  </Stack>
  <Stack gap="2" align="stretch" class="border-t border-border pt-4">
    <Text size="xs" weight="medium" class="uppercase tracking-wide text-muted-foreground">
      {labels.related}
    </Text>
    {#each extras.outline as l (l.id)}
      <MenuEntry href={l.href} class="text-sm font-medium" size="sm" testid="post-link">
        <LucideIcon name="chevron-right" size={16} />
        {l.name}
      </MenuEntry>
    {/each}
  </Stack>
</Stack>

Svelte registry item (JSON)

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-cdn
npx ui8kit add post-outline
components/post-outline.tsx
// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
/** The facts of a post in a column (author, date, minutes, views), then the related reading as links. */
import { type ReactNode } from "react";
import { Group, Stack, Text } from "../compose";
import { LucideIcon } from "../icons/LucideIcon";
import { MenuEntry } from "../components/menu-entry";
import { tpl } from "../utils";
import type { Post } from "../blocks/post-card.types";
import type { PostExtras, PostSplitLabels } from "../blocks/post-split.types";

export type PostOutlineProps = {
  post: Post;
  extras: PostExtras;
  labels: PostSplitLabels;
};

export function PostOutline({ post, extras, labels }: PostOutlineProps) {
  return (
    <Stack gap="6" align="stretch" data-slot="post-outline">
      <Stack gap="2" align="start" className="text-muted-foreground">
        <Group gap="2" align="center">
          <LucideIcon name="user" size={16} />
          <Text size="sm">
            {post.author}
          </Text>
        </Group>
        <Group gap="2" align="center">
          <LucideIcon name="calendar" size={16} />
          <Text size="sm">
            {post.date}
          </Text>
        </Group>
        <Group gap="2" align="center">
          <LucideIcon name="clock" size={16} />
          <Text size="sm">
            {tpl(labels.minutes, post.minutes)}
          </Text>
        </Group>
        <Group gap="2" align="center">
          <LucideIcon name="eye" size={16} />
          <Text size="sm">
            {tpl(labels.views, extras.views)}
          </Text>
        </Group>
      </Stack>
      <Stack gap="2" align="stretch" className="border-t border-border pt-4">
        <Text size="xs" weight="medium" className="uppercase tracking-wide text-muted-foreground">
          {labels.related}
        </Text>
        {(extras.outline ?? []).map((l) => (
          <MenuEntry key={l.id} href={l.href} className="text-sm font-medium" size="sm" testid="post-link">
            <LucideIcon name="chevron-right" size={16} />
            {l.name}
          </MenuEntry>
        ))}
      </Stack>
    </Stack>
  );
}

React registry item (JSON)

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-cdn
npx ui8kit add post-outline
components/post-outline.vue
<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->
<!-- The facts of a post in a column (author, date, minutes, views), then the related reading as links. -->
<script lang="ts">
import type { Post } from "../blocks/post-card.types";
import type { PostExtras, PostSplitLabels } from "../blocks/post-split.types";

export type PostOutlineProps = {
  post: Post;
  extras: PostExtras;
  labels: PostSplitLabels;
};
</script>

<script setup lang="ts">
import Group from "../compose/Group.vue";
import LucideIcon from "../icons/LucideIcon.vue";
import Stack from "../compose/Stack.vue";
import Text from "../compose/Text.vue";
import MenuEntry from "../components/menu-entry.vue";
import { tpl } from "../utils";

const { post, extras, labels } = defineProps<PostOutlineProps>();
</script>

<template>
  <Stack gap="6" align="stretch" data-slot="post-outline">
    <Stack gap="2" align="start" class="text-muted-foreground">
      <Group gap="2" align="center">
        <LucideIcon name="user" :size="16" />
        <Text size="sm">
          {{ post.author }}
        </Text>
      </Group>
      <Group gap="2" align="center">
        <LucideIcon name="calendar" :size="16" />
        <Text size="sm">
          {{ post.date }}
        </Text>
      </Group>
      <Group gap="2" align="center">
        <LucideIcon name="clock" :size="16" />
        <Text size="sm">
          {{ tpl(labels.minutes, post.minutes) }}
        </Text>
      </Group>
      <Group gap="2" align="center">
        <LucideIcon name="eye" :size="16" />
        <Text size="sm">
          {{ tpl(labels.views, extras.views) }}
        </Text>
      </Group>
    </Stack>
    <Stack gap="2" align="stretch" class="border-t border-border pt-4">
      <Text size="xs" weight="medium" class="uppercase tracking-wide text-muted-foreground">
        {{ labels.related }}
      </Text>
      <MenuEntry
        v-for="l in extras.outline"
        :key="l.id"
        :href="l.href"
        class="text-sm font-medium"
        size="sm"
        testid="post-link"
      >
        <LucideIcon name="chevron-right" :size="16" />
        {{ l.name }}
      </MenuEntry>
    </Stack>
  </Stack>
</template>

Vue registry item (JSON)

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-cdn
npx ui8kit add post-outline
components/post-outline.tsx
// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.
/** The facts of a post in a column (author, date, minutes, views), then the related reading as links. */
import { For, type JSX } from "solid-js";
import { Group, Stack, Text } from "../compose";
import { LucideIcon } from "../icons/LucideIcon";
import { MenuEntry } from "../components/menu-entry";
import { tpl } from "../utils";
import type { Post } from "../blocks/post-card.types";
import type { PostExtras, PostSplitLabels } from "../blocks/post-split.types";

export type PostOutlineProps = {
  post: Post;
  extras: PostExtras;
  labels: PostSplitLabels;
};

export function PostOutline({ post, extras, labels }: PostOutlineProps) {
  return (
    <Stack gap="6" align="stretch" data-slot="post-outline">
      <Stack gap="2" align="start" class="text-muted-foreground">
        <Group gap="2" align="center">
          <LucideIcon name="user" size={16} />
          <Text size="sm">
            {post.author}
          </Text>
        </Group>
        <Group gap="2" align="center">
          <LucideIcon name="calendar" size={16} />
          <Text size="sm">
            {post.date}
          </Text>
        </Group>
        <Group gap="2" align="center">
          <LucideIcon name="clock" size={16} />
          <Text size="sm">
            {tpl(labels.minutes, post.minutes)}
          </Text>
        </Group>
        <Group gap="2" align="center">
          <LucideIcon name="eye" size={16} />
          <Text size="sm">
            {tpl(labels.views, extras.views)}
          </Text>
        </Group>
      </Stack>
      <Stack gap="2" align="stretch" class="border-t border-border pt-4">
        <Text size="xs" weight="medium" class="uppercase tracking-wide text-muted-foreground">
          {labels.related}
        </Text>
        <For each={extras.outline ?? []}>{(l) => (
          <MenuEntry href={l.href} class="text-sm font-medium" size="sm" testid="post-link">
            <LucideIcon name="chevron-right" size={16} />
            {l.name}
          </MenuEntry>
        )}</For>
      </Stack>
    </Stack>
  );
}

Solid registry item (JSON)

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-cdn
npx ui8kit add post-outline
blocks/post-outline.templ
// 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/post-outline.json

package blocks

import (
	"github.com/ui8kit/codegen/generated/templ/ui/box"
	"github.com/ui8kit/codegen/generated/templ/compose"
	"github.com/ui8kit/codegen/generated/templ/icons"
	"github.com/ui8kit/codegen/generated/templ/ui/text"
	uiutils "github.com/ui8kit/codegen/generated/templ/orgutils"
)

// PostOutlineProps are the props of PostOutline; the values are the JSON shapes of the TypeScript props.
type PostOutlineProps struct {
	Post any `json:"post"`
	Extras any `json:"extras"`
	Labels any `json:"labels"`
}

// The facts of a post in a column (author, date, minutes, views), then the related reading as links.
templ PostOutline(p PostOutlineProps) {
	{{ vPost := p.Post }}
	{{ vExtras := p.Extras }}
	{{ vLabels := p.Labels }}
	@compose.Stack(compose.StackProps{Gap: "6", Align: "stretch", BoxProps: box.BoxProps{Attrs: uiutils.Attrs("data-slot", "post-outline")}}) {
		@compose.Stack(compose.StackProps{Gap: "2", Align: "start", BoxProps: box.BoxProps{Class: "text-muted-foreground"}}) {
			@compose.Group(compose.GroupProps{Gap: "2", Align: "center", BoxProps: box.BoxProps{}}) {
				@icons.LucideIcon(icons.LucideIconProps{Name: "user", Size: 16})
				@compose.Text(compose.TextProps{Size: "sm", TextProps: text.TextProps{}}) {
					{ uiutils.Text(uiutils.Get(vPost, "author")) }
				}
			}
			@compose.Group(compose.GroupProps{Gap: "2", Align: "center", BoxProps: box.BoxProps{}}) {
				@icons.LucideIcon(icons.LucideIconProps{Name: "calendar", Size: 16})
				@compose.Text(compose.TextProps{Size: "sm", TextProps: text.TextProps{}}) {
					{ uiutils.Text(uiutils.Get(vPost, "date")) }
				}
			}
			@compose.Group(compose.GroupProps{Gap: "2", Align: "center", BoxProps: box.BoxProps{}}) {
				@icons.LucideIcon(icons.LucideIconProps{Name: "clock", Size: 16})
				@compose.Text(compose.TextProps{Size: "sm", TextProps: text.TextProps{}}) {
					{ uiutils.Text(uiutils.Tpl(uiutils.Get(vLabels, "minutes"), uiutils.Get(vPost, "minutes"))) }
				}
			}
			@compose.Group(compose.GroupProps{Gap: "2", Align: "center", BoxProps: box.BoxProps{}}) {
				@icons.LucideIcon(icons.LucideIconProps{Name: "eye", Size: 16})
				@compose.Text(compose.TextProps{Size: "sm", TextProps: text.TextProps{}}) {
					{ uiutils.Text(uiutils.Tpl(uiutils.Get(vLabels, "views"), uiutils.Get(vExtras, "views"))) }
				}
			}
		}
		@compose.Stack(compose.StackProps{Gap: "2", Align: "stretch", BoxProps: box.BoxProps{Class: "border-t border-border pt-4"}}) {
			@compose.Text(compose.TextProps{Size: "xs", Weight: "medium", TextProps: text.TextProps{Class: "uppercase tracking-wide text-muted-foreground"}}) {
				{ uiutils.Text(uiutils.Get(vLabels, "related")) }
			}
			for _, vL := range uiutils.L(uiutils.Get(vExtras, "outline")) {
				@MenuEntry(MenuEntryProps{Href: uiutils.Get(vL, "href"), Class: uiutils.Cnv("text-sm font-medium"), Size: "sm", Testid: "post-link"}) {
					@icons.LucideIcon(icons.LucideIconProps{Name: "chevron-right", Size: 16})
					{ uiutils.Text(uiutils.Get(vL, "name")) }
				}
			}
		}
	}
}

templ registry item (JSON)

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-cdn
npx ui8kit add post-outline
blocks/post-outline.html.twig
{#- 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/post-outline.json
    The facts of a post in a column (author, date, minutes, views), then the related reading as links.
    Props (p): post, extras, labels. -#}
{%- set v_post = (p.post ?? null) -%}
{%- set v_extras = (p.extras ?? null) -%}
{%- set v_labels = (p.labels ?? null) -%}
{%- set c_13 -%}
  {%- set c_9 -%}
    {%- set c_2 -%}
      {{ include('icons/LucideIcon.html.twig', {'name': 'user', 'size': 16}, with_context = false) }}
      {%- set c_1 -%}
        {{ og_text(og_get(v_post, ['author'])) }}
      {%- endset -%}
      {{ include('compose/Text.html.twig', {'size': 'sm', 'children': c_1}, with_context = false) }}
    {%- endset -%}
    {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'children': c_2}, with_context = false) }}
    {%- set c_4 -%}
      {{ include('icons/LucideIcon.html.twig', {'name': 'calendar', 'size': 16}, with_context = false) }}
      {%- set c_3 -%}
        {{ og_text(og_get(v_post, ['date'])) }}
      {%- endset -%}
      {{ include('compose/Text.html.twig', {'size': 'sm', 'children': c_3}, with_context = false) }}
    {%- endset -%}
    {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'children': c_4}, with_context = false) }}
    {%- set c_6 -%}
      {{ include('icons/LucideIcon.html.twig', {'name': 'clock', 'size': 16}, with_context = false) }}
      {%- set c_5 -%}
        {{ og_text(og_tpl(og_get(v_labels, ['minutes']), [og_get(v_post, ['minutes'])])) }}
      {%- endset -%}
      {{ include('compose/Text.html.twig', {'size': 'sm', 'children': c_5}, with_context = false) }}
    {%- endset -%}
    {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'children': c_6}, with_context = false) }}
    {%- set c_8 -%}
      {{ include('icons/LucideIcon.html.twig', {'name': 'eye', 'size': 16}, with_context = false) }}
      {%- set c_7 -%}
        {{ og_text(og_tpl(og_get(v_labels, ['views']), [og_get(v_extras, ['views'])])) }}
      {%- endset -%}
      {{ include('compose/Text.html.twig', {'size': 'sm', 'children': c_7}, with_context = false) }}
    {%- endset -%}
    {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'children': c_8}, with_context = false) }}
  {%- endset -%}
  {{ include('compose/Stack.html.twig', {'gap': '2', 'align': 'start', 'class': 'text-muted-foreground', 'children': c_9}, with_context = false) }}
  {%- set c_12 -%}
    {%- set c_10 -%}
      {{ og_text(og_get(v_labels, ['related'])) }}
    {%- endset -%}
    {{ include('compose/Text.html.twig', {'size': 'xs', 'weight': 'medium', 'class': 'uppercase tracking-wide text-muted-foreground', 'children': c_10}, with_context = false) }}
    {%- for v_l in og_l(og_get(v_extras, ['outline'])) %}
      {%- set c_11 -%}
        {{ include('icons/LucideIcon.html.twig', {'name': 'chevron-right', 'size': 16}, with_context = false) }}
        {{ og_text(og_get(v_l, ['name'])) }}
      {%- endset -%}
      {{ include('blocks/menu-entry.html.twig', {'p': {'href': og_get(v_l, ['href']), 'className': og_cnv(['text-sm font-medium']), 'size': 'sm', 'testid': 'post-link'}, 'children': og_markup(c_11)}, with_context = false) }}
    {%- endfor %}
  {%- endset -%}
  {{ include('compose/Stack.html.twig', {'gap': '2', 'align': 'stretch', 'class': 'border-t border-border pt-4', 'children': c_12}, with_context = false) }}
{%- endset -%}
{{ include('compose/Stack.html.twig', {'gap': '6', 'align': 'stretch', 'attrs': og_attrs(['data-slot', 'post-outline']), 'children': c_13}, with_context = false) }}

Twig registry item (JSON)

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-cdn
npx ui8kit add post-outline
blocks/post-outline.latte
{* 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/post-outline.json
    The facts of a post in a column (author, date, minutes, views), then the related reading as links.
    Props (p): post, extras, labels. *}
{var $v_post = ($p['post'] ?? null)}
{var $v_extras = ($p['extras'] ?? null)}
{var $v_labels = ($p['labels'] ?? null)}
{capture $c_13}
  {capture $c_9}
    {capture $c_2}
      {=og_include('icons/LucideIcon.latte', ['name' => 'user', 'size' => 16])|noescape}
      {capture $c_1}
        {=og_text(og_get($v_post, ['author']))}
      {/capture}
      {=og_include('compose/Text.latte', ['size' => 'sm', 'children' => (string) $c_1])|noescape}
    {/capture}
    {=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'center', 'children' => (string) $c_2])|noescape}
    {capture $c_4}
      {=og_include('icons/LucideIcon.latte', ['name' => 'calendar', 'size' => 16])|noescape}
      {capture $c_3}
        {=og_text(og_get($v_post, ['date']))}
      {/capture}
      {=og_include('compose/Text.latte', ['size' => 'sm', 'children' => (string) $c_3])|noescape}
    {/capture}
    {=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'center', 'children' => (string) $c_4])|noescape}
    {capture $c_6}
      {=og_include('icons/LucideIcon.latte', ['name' => 'clock', 'size' => 16])|noescape}
      {capture $c_5}
        {=og_text(og_tpl(og_get($v_labels, ['minutes']), [og_get($v_post, ['minutes'])]))}
      {/capture}
      {=og_include('compose/Text.latte', ['size' => 'sm', 'children' => (string) $c_5])|noescape}
    {/capture}
    {=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'center', 'children' => (string) $c_6])|noescape}
    {capture $c_8}
      {=og_include('icons/LucideIcon.latte', ['name' => 'eye', 'size' => 16])|noescape}
      {capture $c_7}
        {=og_text(og_tpl(og_get($v_labels, ['views']), [og_get($v_extras, ['views'])]))}
      {/capture}
      {=og_include('compose/Text.latte', ['size' => 'sm', 'children' => (string) $c_7])|noescape}
    {/capture}
    {=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'center', 'children' => (string) $c_8])|noescape}
  {/capture}
  {=og_include('compose/Stack.latte', ['gap' => '2', 'align' => 'start', 'class' => 'text-muted-foreground', 'children' => (string) $c_9])|noescape}
  {capture $c_12}
    {capture $c_10}
      {=og_text(og_get($v_labels, ['related']))}
    {/capture}
    {=og_include('compose/Text.latte', ['size' => 'xs', 'weight' => 'medium', 'class' => 'uppercase tracking-wide text-muted-foreground', 'children' => (string) $c_10])|noescape}
    {foreach og_l(og_get($v_extras, ['outline'])) as $v_l}
      {capture $c_11}
        {=og_include('icons/LucideIcon.latte', ['name' => 'chevron-right', 'size' => 16])|noescape}
        {=og_text(og_get($v_l, ['name']))}
      {/capture}
      {=og_include('blocks/menu-entry.latte', ['p' => ['href' => og_get($v_l, ['href']), 'className' => og_cnv(['text-sm font-medium']), 'size' => 'sm', 'testid' => 'post-link'], 'children' => og_markup($c_11)])|noescape}
    {/foreach}
  {/capture}
  {=og_include('compose/Stack.latte', ['gap' => '2', 'align' => 'stretch', 'class' => 'border-t border-border pt-4', 'children' => (string) $c_12])|noescape}
{/capture}
{=og_include('compose/Stack.latte', ['gap' => '6', 'align' => 'stretch', 'attrs' => og_attrs(['data-slot', 'post-outline']), 'children' => (string) $c_13])|noescape}

Latte registry item (JSON)

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-cdn
npx ui8kit add post-outline
blocks/post-outline.html.j2
{#- 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/post-outline.json
    The facts of a post in a column (author, date, minutes, views), then the related reading as links.
    Props (p): post, extras, labels. -#}
{%- set v_post = og_def(p['post'], none) -%}
{%- set v_extras = og_def(p['extras'], none) -%}
{%- set v_labels = og_def(p['labels'], none) -%}
{%- set c_13 -%}
  {%- set c_9 -%}
    {%- set c_2 -%}
      {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'user', 'Size': 16}}) }}
      {%- set c_1 -%}
        {{ og_text(og_get(v_post, ['author'])) }}
      {%- endset -%}
      {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm'}, 'children': c_1}) }}
    {%- endset -%}
    {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'center'}, 'children': c_2}) }}
    {%- set c_4 -%}
      {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'calendar', 'Size': 16}}) }}
      {%- set c_3 -%}
        {{ og_text(og_get(v_post, ['date'])) }}
      {%- endset -%}
      {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm'}, 'children': c_3}) }}
    {%- endset -%}
    {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'center'}, 'children': c_4}) }}
    {%- set c_6 -%}
      {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'clock', 'Size': 16}}) }}
      {%- set c_5 -%}
        {{ og_text(og_tpl(og_get(v_labels, ['minutes']), [og_get(v_post, ['minutes'])])) }}
      {%- endset -%}
      {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm'}, 'children': c_5}) }}
    {%- endset -%}
    {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'center'}, 'children': c_6}) }}
    {%- set c_8 -%}
      {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'eye', 'Size': 16}}) }}
      {%- set c_7 -%}
        {{ og_text(og_tpl(og_get(v_labels, ['views']), [og_get(v_extras, ['views'])])) }}
      {%- endset -%}
      {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm'}, 'children': c_7}) }}
    {%- endset -%}
    {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'center'}, 'children': c_8}) }}
  {%- endset -%}
  {{ og_include('compose/stack.html.j2', {'p': {'Gap': '2', 'Align': 'start', 'Class': 'text-muted-foreground'}, 'children': c_9}) }}
  {%- set c_12 -%}
    {%- set c_10 -%}
      {{ og_text(og_get(v_labels, ['related'])) }}
    {%- endset -%}
    {{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Weight': 'medium', 'Class': 'uppercase tracking-wide text-muted-foreground'}, 'children': c_10}) }}
    {%- for v_l in og_l(og_get(v_extras, ['outline'])) %}
      {%- set c_11 -%}
        {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'chevron-right', 'Size': 16}}) }}
        {{ og_text(og_get(v_l, ['name'])) }}
      {%- endset -%}
      {{ og_include('blocks/menu-entry.html.j2', {'p': {'href': og_get(v_l, ['href']), 'className': og_cnv(['text-sm font-medium']), 'size': 'sm', 'testid': 'post-link'}, 'children': og_markup(c_11)}) }}
    {%- endfor %}
  {%- endset -%}
  {{ og_include('compose/stack.html.j2', {'p': {'Gap': '2', 'Align': 'stretch', 'Class': 'border-t border-border pt-4'}, 'children': c_12}) }}
{%- endset -%}
{{ og_include('compose/stack.html.j2', {'p': {'Gap': '6', 'Align': 'stretch', 'Attrs': og_attrs(['data-slot', 'post-outline'])}, 'children': c_13}) }}

Jinja2 registry item (JSON)

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.

The facts of a post in a column (author, date, minutes, views), then the related reading as links.

Props of PostOutline
PropTypeDefault Description
post (required)Post-
extras (required)PostExtras-the author's role and bio, the reading figures, the tags and the outline
labels (required)PostSplitLabels-

Used in