Shell Content
Shell Content component
Install
npx ui8kit add shell-contentPulls in: box, compose, group, kit-box, kit-text, stack, title, utils
Preview
Orders
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-cdnnpx ui8kit add shell-content<!-- 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 placeholder content of DashboardShell: the page heading beside a grey action, then empty cards on the 8px
grid. Shapes: grid (four small cards over a big one), split (a wide card beside a narrow one over a low one),
list (a toolbar over a card of rows). The cards are hidden from assistive technology.
-->
<script lang="ts" module>
import type { Snippet } from "svelte";
export type ShellContentProps = {
title: string;
titleId: string;
level?: 1 | 2;
content?: "grid" | "split" | "list";
};
</script>
<script lang="ts">
import Box from "../compose/Box.svelte";
import Group from "../compose/Group.svelte";
import Stack from "../compose/Stack.svelte";
import Title from "../compose/Title.svelte";
import { cn } from "../utils";
let { title, titleId, level = 2, content = "grid" }: ShellContentProps = $props();
</script>
<Stack gap="6" align="stretch" class="flex-1 p-6" data-slot="content">
<Group gap="4" align="center" justify="between">
<Title as={level} size="2xl" weight="semibold" id={titleId}>
{title}
</Title>
<Box class="h-10 w-32 rounded bg-muted" aria-hidden="true" />
</Group>
<Box class="flex flex-1 flex-col gap-4" aria-hidden="true" data-slot="panels">
{#if ((content as string) === "grid")}
<Box class="grid grid-cols-2 gap-4 lg:grid-cols-4">
<Box
class={cn("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "h-24")}
data-slot="panel"
>
<Box class={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box class={cn("rounded bg-muted", "flex-1")} />
</Box>
<Box
class={cn("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "h-24")}
data-slot="panel"
>
<Box class={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box class={cn("rounded bg-muted", "flex-1")} />
</Box>
<Box
class={cn("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "h-24")}
data-slot="panel"
>
<Box class={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box class={cn("rounded bg-muted", "flex-1")} />
</Box>
<Box
class={cn("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "h-24")}
data-slot="panel"
>
<Box class={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box class={cn("rounded bg-muted", "flex-1")} />
</Box>
</Box>
<Box
class={cn(
"flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border",
"min-h-64 flex-1"
)}
data-slot="panel"
>
<Box class={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box class={cn("rounded bg-muted", "flex-1")} />
</Box>
{/if}
{#if ((content as string) === "split")}
<Box class="grid grid-cols-1 gap-4 lg:grid-cols-3">
<Box
class={cn(
"flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border",
"h-64 lg:col-span-2"
)}
data-slot="panel"
>
<Box class={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box class={cn("rounded bg-muted", "flex-1")} />
</Box>
<Box
class={cn("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "h-64")}
data-slot="panel"
>
<Box class={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box class={cn("rounded bg-muted", "flex-1")} />
</Box>
</Box>
<Box
class={cn(
"flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border",
"min-h-40 flex-1"
)}
data-slot="panel"
>
<Box class={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box class={cn("rounded bg-muted", "flex-1")} />
</Box>
{/if}
{#if ((content as string) === "list")}
<Group gap="4" align="center">
<Box class={cn("rounded bg-muted", "h-10 w-64")} />
<Box class={cn("rounded bg-muted", "h-10 w-24")} />
<Box class={cn("rounded bg-muted", "ml-auto h-10 w-32")} />
</Group>
<Box
class={cn("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "flex-1")}
data-slot="panel"
>
<Box class={cn("rounded bg-muted", "h-8")} />
<Box class={cn("rounded bg-muted", "h-8")} />
<Box class={cn("rounded bg-muted", "h-8")} />
<Box class={cn("rounded bg-muted", "h-8")} />
<Box class={cn("rounded bg-muted", "h-8")} />
<Box class={cn("rounded bg-muted", "h-8")} />
</Box>
{/if}
</Box>
</Stack>
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-cdnnpx ui8kit add shell-content// 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 placeholder content of DashboardShell: the page heading beside a grey action, then empty cards on the 8px
* grid. Shapes: grid (four small cards over a big one), split (a wide card beside a narrow one over a low one),
* list (a toolbar over a card of rows). The cards are hidden from assistive technology.
*/
import { type ReactNode } from "react";
import { Box, Group, Stack, Title } from "../compose";
import { cn } from "../utils";
export type ShellContentProps = {
title: string;
titleId: string;
level?: 1 | 2;
content?: "grid" | "split" | "list";
};
export function ShellContent({ title, titleId, level = 2, content = "grid" }: ShellContentProps) {
return (
<Stack gap="6" align="stretch" className="flex-1 p-6" data-slot="content">
<Group gap="4" align="center" justify="between">
<Title as={level} size="2xl" weight="semibold" id={titleId}>
{title}
</Title>
<Box className="h-10 w-32 rounded bg-muted" aria-hidden="true" />
</Group>
<Box className="flex flex-1 flex-col gap-4" aria-hidden="true" data-slot="panels">
{((content as string) === "grid") ? (
<>
<Box className="grid grid-cols-2 gap-4 lg:grid-cols-4">
<Box
className={cn("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "h-24")}
data-slot="panel"
>
<Box className={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box className={cn("rounded bg-muted", "flex-1")} />
</Box>
<Box
className={cn("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "h-24")}
data-slot="panel"
>
<Box className={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box className={cn("rounded bg-muted", "flex-1")} />
</Box>
<Box
className={cn("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "h-24")}
data-slot="panel"
>
<Box className={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box className={cn("rounded bg-muted", "flex-1")} />
</Box>
<Box
className={cn("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "h-24")}
data-slot="panel"
>
<Box className={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box className={cn("rounded bg-muted", "flex-1")} />
</Box>
</Box>
<Box
className={cn(
"flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border",
"min-h-64 flex-1"
)}
data-slot="panel"
>
<Box className={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box className={cn("rounded bg-muted", "flex-1")} />
</Box>
</>
) : null}
{((content as string) === "split") ? (
<>
<Box className="grid grid-cols-1 gap-4 lg:grid-cols-3">
<Box
className={cn(
"flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border",
"h-64 lg:col-span-2"
)}
data-slot="panel"
>
<Box className={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box className={cn("rounded bg-muted", "flex-1")} />
</Box>
<Box
className={cn("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "h-64")}
data-slot="panel"
>
<Box className={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box className={cn("rounded bg-muted", "flex-1")} />
</Box>
</Box>
<Box
className={cn(
"flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border",
"min-h-40 flex-1"
)}
data-slot="panel"
>
<Box className={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box className={cn("rounded bg-muted", "flex-1")} />
</Box>
</>
) : null}
{((content as string) === "list") ? (
<>
<Group gap="4" align="center">
<Box className={cn("rounded bg-muted", "h-10 w-64")} />
<Box className={cn("rounded bg-muted", "h-10 w-24")} />
<Box className={cn("rounded bg-muted", "ml-auto h-10 w-32")} />
</Group>
<Box
className={cn("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "flex-1")}
data-slot="panel"
>
<Box className={cn("rounded bg-muted", "h-8")} />
<Box className={cn("rounded bg-muted", "h-8")} />
<Box className={cn("rounded bg-muted", "h-8")} />
<Box className={cn("rounded bg-muted", "h-8")} />
<Box className={cn("rounded bg-muted", "h-8")} />
<Box className={cn("rounded bg-muted", "h-8")} />
</Box>
</>
) : null}
</Box>
</Stack>
);
}
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-cdnnpx ui8kit add shell-content<!-- 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 placeholder content of DashboardShell: the page heading beside a grey action, then empty cards on the 8px
grid. Shapes: grid (four small cards over a big one), split (a wide card beside a narrow one over a low one),
list (a toolbar over a card of rows). The cards are hidden from assistive technology.
-->
<script lang="ts">
export type ShellContentProps = {
title: string;
titleId: string;
level?: 1 | 2;
content?: "grid" | "split" | "list";
};
</script>
<script setup lang="ts">
import Box from "../compose/Box.vue";
import Group from "../compose/Group.vue";
import Stack from "../compose/Stack.vue";
import Title from "../compose/Title.vue";
import { cn } from "../utils";
const { title, titleId, level = 2, content = "grid" } = defineProps<ShellContentProps>();
</script>
<template>
<Stack gap="6" align="stretch" class="flex-1 p-6" data-slot="content">
<Group gap="4" align="center" justify="between">
<Title :as="level" size="2xl" weight="semibold" :id="titleId">
{{ title }}
</Title>
<Box class="h-10 w-32 rounded bg-muted" aria-hidden="true" />
</Group>
<Box class="flex flex-1 flex-col gap-4" aria-hidden="true" data-slot="panels">
<template v-if="((content as string) === 'grid')">
<Box class="grid grid-cols-2 gap-4 lg:grid-cols-4">
<Box
:class="cn('flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-24')"
data-slot="panel"
>
<Box :class="cn('rounded bg-muted', 'h-4 w-1/3')" />
<Box :class="cn('rounded bg-muted', 'flex-1')" />
</Box>
<Box
:class="cn('flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-24')"
data-slot="panel"
>
<Box :class="cn('rounded bg-muted', 'h-4 w-1/3')" />
<Box :class="cn('rounded bg-muted', 'flex-1')" />
</Box>
<Box
:class="cn('flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-24')"
data-slot="panel"
>
<Box :class="cn('rounded bg-muted', 'h-4 w-1/3')" />
<Box :class="cn('rounded bg-muted', 'flex-1')" />
</Box>
<Box
:class="cn('flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-24')"
data-slot="panel"
>
<Box :class="cn('rounded bg-muted', 'h-4 w-1/3')" />
<Box :class="cn('rounded bg-muted', 'flex-1')" />
</Box>
</Box>
<Box
:class="cn(
'flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border',
'min-h-64 flex-1'
)"
data-slot="panel"
>
<Box :class="cn('rounded bg-muted', 'h-4 w-1/3')" />
<Box :class="cn('rounded bg-muted', 'flex-1')" />
</Box>
</template>
<template v-if="((content as string) === 'split')">
<Box class="grid grid-cols-1 gap-4 lg:grid-cols-3">
<Box
:class="cn(
'flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border',
'h-64 lg:col-span-2'
)"
data-slot="panel"
>
<Box :class="cn('rounded bg-muted', 'h-4 w-1/3')" />
<Box :class="cn('rounded bg-muted', 'flex-1')" />
</Box>
<Box
:class="cn('flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-64')"
data-slot="panel"
>
<Box :class="cn('rounded bg-muted', 'h-4 w-1/3')" />
<Box :class="cn('rounded bg-muted', 'flex-1')" />
</Box>
</Box>
<Box
:class="cn(
'flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border',
'min-h-40 flex-1'
)"
data-slot="panel"
>
<Box :class="cn('rounded bg-muted', 'h-4 w-1/3')" />
<Box :class="cn('rounded bg-muted', 'flex-1')" />
</Box>
</template>
<template v-if="((content as string) === 'list')">
<Group gap="4" align="center">
<Box :class="cn('rounded bg-muted', 'h-10 w-64')" />
<Box :class="cn('rounded bg-muted', 'h-10 w-24')" />
<Box :class="cn('rounded bg-muted', 'ml-auto h-10 w-32')" />
</Group>
<Box
:class="cn('flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'flex-1')"
data-slot="panel"
>
<Box :class="cn('rounded bg-muted', 'h-8')" />
<Box :class="cn('rounded bg-muted', 'h-8')" />
<Box :class="cn('rounded bg-muted', 'h-8')" />
<Box :class="cn('rounded bg-muted', 'h-8')" />
<Box :class="cn('rounded bg-muted', 'h-8')" />
<Box :class="cn('rounded bg-muted', 'h-8')" />
</Box>
</template>
</Box>
</Stack>
</template>
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-cdnnpx ui8kit add shell-content// 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 placeholder content of DashboardShell: the page heading beside a grey action, then empty cards on the 8px
* grid. Shapes: grid (four small cards over a big one), split (a wide card beside a narrow one over a low one),
* list (a toolbar over a card of rows). The cards are hidden from assistive technology.
*/
import { type JSX } from "solid-js";
import { Box, Group, Stack, Title } from "../compose";
import { cn } from "../utils";
export type ShellContentProps = {
title: string;
titleId: string;
level?: 1 | 2;
content?: "grid" | "split" | "list";
};
export function ShellContent({ title, titleId, level = 2, content = "grid" }: ShellContentProps) {
return (
<Stack gap="6" align="stretch" class="flex-1 p-6" data-slot="content">
<Group gap="4" align="center" justify="between">
<Title as={level} size="2xl" weight="semibold" id={titleId}>
{title}
</Title>
<Box class="h-10 w-32 rounded bg-muted" aria-hidden="true" />
</Group>
<Box class="flex flex-1 flex-col gap-4" aria-hidden="true" data-slot="panels">
{((content as string) === "grid") ? (
<>
<Box class="grid grid-cols-2 gap-4 lg:grid-cols-4">
<Box
class={cn("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "h-24")}
data-slot="panel"
>
<Box class={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box class={cn("rounded bg-muted", "flex-1")} />
</Box>
<Box
class={cn("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "h-24")}
data-slot="panel"
>
<Box class={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box class={cn("rounded bg-muted", "flex-1")} />
</Box>
<Box
class={cn("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "h-24")}
data-slot="panel"
>
<Box class={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box class={cn("rounded bg-muted", "flex-1")} />
</Box>
<Box
class={cn("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "h-24")}
data-slot="panel"
>
<Box class={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box class={cn("rounded bg-muted", "flex-1")} />
</Box>
</Box>
<Box
class={cn(
"flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border",
"min-h-64 flex-1"
)}
data-slot="panel"
>
<Box class={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box class={cn("rounded bg-muted", "flex-1")} />
</Box>
</>
) : null}
{((content as string) === "split") ? (
<>
<Box class="grid grid-cols-1 gap-4 lg:grid-cols-3">
<Box
class={cn(
"flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border",
"h-64 lg:col-span-2"
)}
data-slot="panel"
>
<Box class={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box class={cn("rounded bg-muted", "flex-1")} />
</Box>
<Box
class={cn("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "h-64")}
data-slot="panel"
>
<Box class={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box class={cn("rounded bg-muted", "flex-1")} />
</Box>
</Box>
<Box
class={cn(
"flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border",
"min-h-40 flex-1"
)}
data-slot="panel"
>
<Box class={cn("rounded bg-muted", "h-4 w-1/3")} />
<Box class={cn("rounded bg-muted", "flex-1")} />
</Box>
</>
) : null}
{((content as string) === "list") ? (
<>
<Group gap="4" align="center">
<Box class={cn("rounded bg-muted", "h-10 w-64")} />
<Box class={cn("rounded bg-muted", "h-10 w-24")} />
<Box class={cn("rounded bg-muted", "ml-auto h-10 w-32")} />
</Group>
<Box
class={cn("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "flex-1")}
data-slot="panel"
>
<Box class={cn("rounded bg-muted", "h-8")} />
<Box class={cn("rounded bg-muted", "h-8")} />
<Box class={cn("rounded bg-muted", "h-8")} />
<Box class={cn("rounded bg-muted", "h-8")} />
<Box class={cn("rounded bg-muted", "h-8")} />
<Box class={cn("rounded bg-muted", "h-8")} />
</Box>
</>
) : null}
</Box>
</Stack>
);
}
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-cdnnpx ui8kit add shell-content// 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/shell-content.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/ui/text"
uiutils "github.com/ui8kit/codegen/generated/templ/orgutils"
)
// ShellContentProps are the props of ShellContent; the values are the JSON shapes of the TypeScript props.
type ShellContentProps struct {
Title any `json:"title"`
TitleId any `json:"titleId"`
Level any `json:"level"`
Content any `json:"content"`
}
// The placeholder content of DashboardShell: the page heading beside a grey action, then empty cards on the 8px grid. Shapes: grid (four small cards over a big one), split (a wide card beside a narrow one over a low one), list (a toolbar over a card of rows). The cards are hidden from assistive technology.
templ ShellContent(p ShellContentProps) {
{{ vTitle := p.Title }}
{{ vTitleId := p.TitleId }}
{{ vLevel := uiutils.Def(p.Level, float64(2)) }}
{{ vContent := uiutils.Def(p.Content, "grid") }}
@compose.Stack(compose.StackProps{Gap: "6", Align: "stretch", BoxProps: box.BoxProps{Class: "flex-1 p-6", Attrs: uiutils.Attrs("data-slot", "content")}}) {
@compose.Group(compose.GroupProps{Gap: "4", Align: "center", Justify: "between", BoxProps: box.BoxProps{}}) {
@compose.Title(compose.TitleProps{As: uiutils.S(vLevel), Size: "2xl", Weight: "semibold", TextProps: text.TextProps{Attrs: uiutils.Attrs("id", vTitleId)}}) {
{ uiutils.Text(vTitle) }
}
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: "h-10 w-32 rounded bg-muted", Attrs: uiutils.Attrs("aria-hidden", "true")}})
}
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: "flex flex-1 flex-col gap-4", Attrs: uiutils.Attrs("aria-hidden", "true", "data-slot", "panels")}}) {
if uiutils.Eq(vContent, "grid") {
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: "grid grid-cols-2 gap-4 lg:grid-cols-4"}}) {
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "h-24")), Attrs: uiutils.Attrs("data-slot", "panel")}}) {
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "h-4 w-1/3"))}})
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "flex-1"))}})
}
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "h-24")), Attrs: uiutils.Attrs("data-slot", "panel")}}) {
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "h-4 w-1/3"))}})
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "flex-1"))}})
}
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "h-24")), Attrs: uiutils.Attrs("data-slot", "panel")}}) {
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "h-4 w-1/3"))}})
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "flex-1"))}})
}
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "h-24")), Attrs: uiutils.Attrs("data-slot", "panel")}}) {
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "h-4 w-1/3"))}})
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "flex-1"))}})
}
}
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "min-h-64 flex-1")), Attrs: uiutils.Attrs("data-slot", "panel")}}) {
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "h-4 w-1/3"))}})
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "flex-1"))}})
}
}
if uiutils.Eq(vContent, "split") {
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: "grid grid-cols-1 gap-4 lg:grid-cols-3"}}) {
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "h-64 lg:col-span-2")), Attrs: uiutils.Attrs("data-slot", "panel")}}) {
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "h-4 w-1/3"))}})
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "flex-1"))}})
}
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "h-64")), Attrs: uiutils.Attrs("data-slot", "panel")}}) {
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "h-4 w-1/3"))}})
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "flex-1"))}})
}
}
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "min-h-40 flex-1")), Attrs: uiutils.Attrs("data-slot", "panel")}}) {
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "h-4 w-1/3"))}})
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "flex-1"))}})
}
}
if uiutils.Eq(vContent, "list") {
@compose.Group(compose.GroupProps{Gap: "4", Align: "center", BoxProps: box.BoxProps{}}) {
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "h-10 w-64"))}})
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "h-10 w-24"))}})
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "ml-auto h-10 w-32"))}})
}
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border", "flex-1")), Attrs: uiutils.Attrs("data-slot", "panel")}}) {
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "h-8"))}})
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "h-8"))}})
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "h-8"))}})
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "h-8"))}})
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "h-8"))}})
@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv("rounded bg-muted", "h-8"))}})
}
}
}
}
}
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-cdnnpx ui8kit add shell-content{#- 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/shell-content.json
The placeholder content of DashboardShell: the page heading beside a grey action, then empty cards on the 8px grid. Shapes: grid (four small cards over a big one), split (a wide card beside a narrow one over a low one), list (a toolbar over a card of rows). The cards are hidden from assistive technology.
Props (p): title, titleId, level, content. -#}
{%- set v_title = (p.title ?? null) -%}
{%- set v_titleId = (p.titleId ?? null) -%}
{%- set v_level = (p.level ?? 2) -%}
{%- set v_content = (p.content ?? 'grid') -%}
{%- set c_16 -%}
{%- set c_2 -%}
{%- set c_1 -%}
{{ og_text(v_title) }}
{%- endset -%}
{{ include('compose/Title.html.twig', {'as': og_i(v_level), 'size': '2xl', 'weight': 'semibold', 'attrs': og_attrs(['id', v_titleId]), 'children': c_1}, with_context = false) }}
{{ include('compose/Box.html.twig', {'class': 'h-10 w-32 rounded bg-muted', 'attrs': og_attrs(['aria-hidden', 'true'])}, with_context = false) }}
{%- endset -%}
{{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'justify': 'between', 'children': c_2}, with_context = false) }}
{%- set c_15 -%}
{%- if og_t(og_eq(v_content, 'grid')) %}
{%- set c_7 -%}
{%- set c_3 -%}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))}, with_context = false) }}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'flex-1']))}, with_context = false) }}
{%- endset -%}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-24'])), 'attrs': og_attrs(['data-slot', 'panel']), 'children': c_3}, with_context = false) }}
{%- set c_4 -%}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))}, with_context = false) }}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'flex-1']))}, with_context = false) }}
{%- endset -%}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-24'])), 'attrs': og_attrs(['data-slot', 'panel']), 'children': c_4}, with_context = false) }}
{%- set c_5 -%}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))}, with_context = false) }}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'flex-1']))}, with_context = false) }}
{%- endset -%}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-24'])), 'attrs': og_attrs(['data-slot', 'panel']), 'children': c_5}, with_context = false) }}
{%- set c_6 -%}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))}, with_context = false) }}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'flex-1']))}, with_context = false) }}
{%- endset -%}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-24'])), 'attrs': og_attrs(['data-slot', 'panel']), 'children': c_6}, with_context = false) }}
{%- endset -%}
{{ include('compose/Box.html.twig', {'class': 'grid grid-cols-2 gap-4 lg:grid-cols-4', 'children': c_7}, with_context = false) }}
{%- set c_8 -%}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))}, with_context = false) }}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'flex-1']))}, with_context = false) }}
{%- endset -%}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'min-h-64 flex-1'])), 'attrs': og_attrs(['data-slot', 'panel']), 'children': c_8}, with_context = false) }}
{%- endif %}
{%- if og_t(og_eq(v_content, 'split')) %}
{%- set c_11 -%}
{%- set c_9 -%}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))}, with_context = false) }}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'flex-1']))}, with_context = false) }}
{%- endset -%}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-64 lg:col-span-2'])), 'attrs': og_attrs(['data-slot', 'panel']), 'children': c_9}, with_context = false) }}
{%- set c_10 -%}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))}, with_context = false) }}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'flex-1']))}, with_context = false) }}
{%- endset -%}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-64'])), 'attrs': og_attrs(['data-slot', 'panel']), 'children': c_10}, with_context = false) }}
{%- endset -%}
{{ include('compose/Box.html.twig', {'class': 'grid grid-cols-1 gap-4 lg:grid-cols-3', 'children': c_11}, with_context = false) }}
{%- set c_12 -%}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))}, with_context = false) }}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'flex-1']))}, with_context = false) }}
{%- endset -%}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'min-h-40 flex-1'])), 'attrs': og_attrs(['data-slot', 'panel']), 'children': c_12}, with_context = false) }}
{%- endif %}
{%- if og_t(og_eq(v_content, 'list')) %}
{%- set c_13 -%}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'h-10 w-64']))}, with_context = false) }}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'h-10 w-24']))}, with_context = false) }}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'ml-auto h-10 w-32']))}, with_context = false) }}
{%- endset -%}
{{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'children': c_13}, with_context = false) }}
{%- set c_14 -%}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'h-8']))}, with_context = false) }}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'h-8']))}, with_context = false) }}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'h-8']))}, with_context = false) }}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'h-8']))}, with_context = false) }}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'h-8']))}, with_context = false) }}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['rounded bg-muted', 'h-8']))}, with_context = false) }}
{%- endset -%}
{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'flex-1'])), 'attrs': og_attrs(['data-slot', 'panel']), 'children': c_14}, with_context = false) }}
{%- endif %}
{%- endset -%}
{{ include('compose/Box.html.twig', {'class': 'flex flex-1 flex-col gap-4', 'attrs': og_attrs(['aria-hidden', 'true', 'data-slot', 'panels']), 'children': c_15}, with_context = false) }}
{%- endset -%}
{{ include('compose/Stack.html.twig', {'gap': '6', 'align': 'stretch', 'class': 'flex-1 p-6', 'attrs': og_attrs(['data-slot', 'content']), 'children': c_16}, with_context = false) }}
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-cdnnpx ui8kit add shell-content{* 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/shell-content.json
The placeholder content of DashboardShell: the page heading beside a grey action, then empty cards on the 8px grid. Shapes: grid (four small cards over a big one), split (a wide card beside a narrow one over a low one), list (a toolbar over a card of rows). The cards are hidden from assistive technology.
Props (p): title, titleId, level, content. *}
{var $v_title = ($p['title'] ?? null)}
{var $v_titleId = ($p['titleId'] ?? null)}
{var $v_level = ($p['level'] ?? 2)}
{var $v_content = ($p['content'] ?? 'grid')}
{capture $c_16}
{capture $c_2}
{capture $c_1}
{=og_text($v_title)}
{/capture}
{=og_include('compose/Title.latte', ['as' => og_i($v_level), 'size' => '2xl', 'weight' => 'semibold', 'attrs' => og_attrs(['id', $v_titleId]), 'children' => (string) $c_1])|noescape}
{=og_include('compose/Box.latte', ['class' => 'h-10 w-32 rounded bg-muted', 'attrs' => og_attrs(['aria-hidden', 'true'])])|noescape}
{/capture}
{=og_include('compose/Group.latte', ['gap' => '4', 'align' => 'center', 'justify' => 'between', 'children' => (string) $c_2])|noescape}
{capture $c_15}
{if og_t(og_eq($v_content, 'grid'))}
{capture $c_7}
{capture $c_3}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))])|noescape}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'flex-1']))])|noescape}
{/capture}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-24'])), 'attrs' => og_attrs(['data-slot', 'panel']), 'children' => (string) $c_3])|noescape}
{capture $c_4}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))])|noescape}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'flex-1']))])|noescape}
{/capture}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-24'])), 'attrs' => og_attrs(['data-slot', 'panel']), 'children' => (string) $c_4])|noescape}
{capture $c_5}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))])|noescape}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'flex-1']))])|noescape}
{/capture}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-24'])), 'attrs' => og_attrs(['data-slot', 'panel']), 'children' => (string) $c_5])|noescape}
{capture $c_6}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))])|noescape}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'flex-1']))])|noescape}
{/capture}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-24'])), 'attrs' => og_attrs(['data-slot', 'panel']), 'children' => (string) $c_6])|noescape}
{/capture}
{=og_include('compose/Box.latte', ['class' => 'grid grid-cols-2 gap-4 lg:grid-cols-4', 'children' => (string) $c_7])|noescape}
{capture $c_8}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))])|noescape}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'flex-1']))])|noescape}
{/capture}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'min-h-64 flex-1'])), 'attrs' => og_attrs(['data-slot', 'panel']), 'children' => (string) $c_8])|noescape}
{/if}
{if og_t(og_eq($v_content, 'split'))}
{capture $c_11}
{capture $c_9}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))])|noescape}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'flex-1']))])|noescape}
{/capture}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-64 lg:col-span-2'])), 'attrs' => og_attrs(['data-slot', 'panel']), 'children' => (string) $c_9])|noescape}
{capture $c_10}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))])|noescape}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'flex-1']))])|noescape}
{/capture}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-64'])), 'attrs' => og_attrs(['data-slot', 'panel']), 'children' => (string) $c_10])|noescape}
{/capture}
{=og_include('compose/Box.latte', ['class' => 'grid grid-cols-1 gap-4 lg:grid-cols-3', 'children' => (string) $c_11])|noescape}
{capture $c_12}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))])|noescape}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'flex-1']))])|noescape}
{/capture}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'min-h-40 flex-1'])), 'attrs' => og_attrs(['data-slot', 'panel']), 'children' => (string) $c_12])|noescape}
{/if}
{if og_t(og_eq($v_content, 'list'))}
{capture $c_13}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'h-10 w-64']))])|noescape}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'h-10 w-24']))])|noescape}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'ml-auto h-10 w-32']))])|noescape}
{/capture}
{=og_include('compose/Group.latte', ['gap' => '4', 'align' => 'center', 'children' => (string) $c_13])|noescape}
{capture $c_14}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'h-8']))])|noescape}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'h-8']))])|noescape}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'h-8']))])|noescape}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'h-8']))])|noescape}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'h-8']))])|noescape}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['rounded bg-muted', 'h-8']))])|noescape}
{/capture}
{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'flex-1'])), 'attrs' => og_attrs(['data-slot', 'panel']), 'children' => (string) $c_14])|noescape}
{/if}
{/capture}
{=og_include('compose/Box.latte', ['class' => 'flex flex-1 flex-col gap-4', 'attrs' => og_attrs(['aria-hidden', 'true', 'data-slot', 'panels']), 'children' => (string) $c_15])|noescape}
{/capture}
{=og_include('compose/Stack.latte', ['gap' => '6', 'align' => 'stretch', 'class' => 'flex-1 p-6', 'attrs' => og_attrs(['data-slot', 'content']), 'children' => (string) $c_16])|noescape}
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-cdnnpx ui8kit add shell-content{#- 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/shell-content.json
The placeholder content of DashboardShell: the page heading beside a grey action, then empty cards on the 8px grid. Shapes: grid (four small cards over a big one), split (a wide card beside a narrow one over a low one), list (a toolbar over a card of rows). The cards are hidden from assistive technology.
Props (p): title, titleId, level, content. -#}
{%- set v_title = og_def(p['title'], none) -%}
{%- set v_titleId = og_def(p['titleId'], none) -%}
{%- set v_level = og_def(p['level'], 2) -%}
{%- set v_content = og_def(p['content'], 'grid') -%}
{%- set c_16 -%}
{%- set c_2 -%}
{%- set c_1 -%}
{{ og_text(v_title) }}
{%- endset -%}
{{ og_include('compose/title.html.j2', {'p': {'As': og_i(v_level), 'Size': '2xl', 'Weight': 'semibold', 'Attrs': og_attrs(['id', v_titleId])}, 'children': c_1}) }}
{{ og_include('compose/box.html.j2', {'p': {'Class': 'h-10 w-32 rounded bg-muted', 'Attrs': og_attrs(['aria-hidden', 'true'])}}) }}
{%- endset -%}
{{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Align': 'center', 'Justify': 'between'}, 'children': c_2}) }}
{%- set c_15 -%}
{%- if og_t(og_eq(v_content, 'grid')) %}
{%- set c_7 -%}
{%- set c_3 -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))}}) }}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'flex-1']))}}) }}
{%- endset -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-24'])), 'Attrs': og_attrs(['data-slot', 'panel'])}, 'children': c_3}) }}
{%- set c_4 -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))}}) }}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'flex-1']))}}) }}
{%- endset -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-24'])), 'Attrs': og_attrs(['data-slot', 'panel'])}, 'children': c_4}) }}
{%- set c_5 -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))}}) }}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'flex-1']))}}) }}
{%- endset -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-24'])), 'Attrs': og_attrs(['data-slot', 'panel'])}, 'children': c_5}) }}
{%- set c_6 -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))}}) }}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'flex-1']))}}) }}
{%- endset -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-24'])), 'Attrs': og_attrs(['data-slot', 'panel'])}, 'children': c_6}) }}
{%- endset -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': 'grid grid-cols-2 gap-4 lg:grid-cols-4'}, 'children': c_7}) }}
{%- set c_8 -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))}}) }}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'flex-1']))}}) }}
{%- endset -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'min-h-64 flex-1'])), 'Attrs': og_attrs(['data-slot', 'panel'])}, 'children': c_8}) }}
{%- endif %}
{%- if og_t(og_eq(v_content, 'split')) %}
{%- set c_11 -%}
{%- set c_9 -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))}}) }}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'flex-1']))}}) }}
{%- endset -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-64 lg:col-span-2'])), 'Attrs': og_attrs(['data-slot', 'panel'])}, 'children': c_9}) }}
{%- set c_10 -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))}}) }}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'flex-1']))}}) }}
{%- endset -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'h-64'])), 'Attrs': og_attrs(['data-slot', 'panel'])}, 'children': c_10}) }}
{%- endset -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': 'grid grid-cols-1 gap-4 lg:grid-cols-3'}, 'children': c_11}) }}
{%- set c_12 -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'h-4 w-1/3']))}}) }}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'flex-1']))}}) }}
{%- endset -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'min-h-40 flex-1'])), 'Attrs': og_attrs(['data-slot', 'panel'])}, 'children': c_12}) }}
{%- endif %}
{%- if og_t(og_eq(v_content, 'list')) %}
{%- set c_13 -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'h-10 w-64']))}}) }}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'h-10 w-24']))}}) }}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'ml-auto h-10 w-32']))}}) }}
{%- endset -%}
{{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Align': 'center'}, 'children': c_13}) }}
{%- set c_14 -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'h-8']))}}) }}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'h-8']))}}) }}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'h-8']))}}) }}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'h-8']))}}) }}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'h-8']))}}) }}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['rounded bg-muted', 'h-8']))}}) }}
{%- endset -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['flex flex-col gap-4 rounded bg-card p-4 inset-ring inset-ring-border', 'flex-1'])), 'Attrs': og_attrs(['data-slot', 'panel'])}, 'children': c_14}) }}
{%- endif %}
{%- endset -%}
{{ og_include('compose/box.html.j2', {'p': {'Class': 'flex flex-1 flex-col gap-4', 'Attrs': og_attrs(['aria-hidden', 'true', 'data-slot', 'panels'])}, 'children': c_15}) }}
{%- endset -%}
{{ og_include('compose/stack.html.j2', {'p': {'Gap': '6', 'Align': 'stretch', 'Class': 'flex-1 p-6', 'Attrs': og_attrs(['data-slot', 'content'])}, 'children': c_16}) }}
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 placeholder content of DashboardShell: the page heading beside a grey action, then empty cards on the 8px grid. Shapes: grid (four small cards over a big one), split (a wide card beside a narrow one over a low one), list (a toolbar over a card of rows). The cards are hidden from assistive technology.
| Prop | Type | Default | Description |
|---|---|---|---|
| title (required) | string | - | |
| titleId (required) | string | - | |
| level | 1 | 2 | 2 | |
| content | "grid" | "split" | "list" | "grid" |