collapsible

Collapsible frame

Collapsible frame

Загрузка превью…

src/collapsible/c-collapsible-6.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>
  <div class="h-54 w-full max-w-xs">
    <Frame stacked dense spacing="sm" class="w-full">
      <Collapsible default-open>
        <CollapsibleTrigger class="flex w-full">
          <FrameHeader class="flex grow flex-row items-center justify-between gap-2">
            <FrameTitle class="text-sm font-medium">Deployment successful</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="text-muted-foreground size-4 transition-transform in-data-[state=open]:rotate-90"
            >
              <path d="m9 18 6-6-6-6" />
            </svg>
          </FrameHeader>
        </CollapsibleTrigger>
        <CollapsibleContent>
          <FramePanel>
            <p class="text-muted-foreground text-xs leading-relaxed">
              Updated the core authentication logic and fixed a minor bug in the login flow. Improved session
              handling for better performance.
            </p>
          </FramePanel>
        </CollapsibleContent>
      </Collapsible>
    </Frame>
  </div>
</template>

Установка

npx shadcn-vue@latest add https://revueui.rootapi.dev/r/c-collapsible-6.json

Зависимости реестра

Источник: порт из ReUI (Keenthemes, MIT)