git-subtree-dir: aiui git-subtree-mainline:0c4826f8ccgit-subtree-split:e30ac1d106
1022 B
1022 B
name, description, allowed-tools
| name | description | allowed-tools |
|---|---|---|
| new-detail | Generate a detail view component following AIUI glass-morphism patterns | Read, Write, Edit, Glob, Grep |
Create a new detail view component at packages/app/src/components/content/{Name}Detail.vue.
Requirements
-
Read a reference: Read
BookDetail.vueorPlaceDetail.vueas a template. -
Follow conventions:
<script setup lang="ts">with single item prop- Back button at top (emits 'back' event)
- Hero image/banner area with gradient overlay and fallback
- Title, subtitle, and metadata section
- Description/long text body with proper typography
- Action buttons (external links, share, etc.) with glass-button styling
- Dark/light mode via
useTheme() - Smooth scroll, overflow-y-auto
-
Props: Accept single item of the content type
-
Emits:
backevent for navigation -
Responsive: Full height, works in sidebar and mobile overlay
The user will specify the content type and which fields to display.