frame
Frame with collapsible panels
Frame with collapsible panels
Загрузка превью…
src/frame/c-frame-5.vue
<!--
Расхождение с апстримом: `IconPlaceholder` заменена инлайновым `<svg>`
(lucide-react v0.545.0 "chevron-right") — см. docs/PORTING.md §5.
-->
<script setup lang="ts">
import { Frame, FrameHeader, FramePanel, FrameTitle } from "@/components/reui/frame"
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible"
</script>
<template>
<Frame class="w-full" stacked>
<Collapsible default-open class="group/collapsible">
<CollapsibleTrigger class="w-full">
<FrameHeader class="flex grow flex-row items-center justify-between gap-2">
<FrameTitle>Start</FrameTitle>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
aria-hidden="true"
class="lucide lucide-chevron-right text-muted-foreground size-4 transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"
><path d="m9 18 6-6-6-6" /></svg>
</FrameHeader>
</CollapsibleTrigger>
<CollapsibleContent>
<FramePanel>
<p class="text-muted-foreground text-sm">
Initialize run to answer a user question using uploaded files and
the knowledge base; cite sources when relevant.
</p>
</FramePanel>
</CollapsibleContent>
</Collapsible>
</Frame>
</template>
Установка
npx shadcn-vue@latest add https://revueui.rootapi.dev/r/c-frame-5.jsonЗависимости реестра
Источник: порт из ReUI (Keenthemes, MIT)