resizable
Vertical resizable layout.
Vertical resizable layout.
Загрузка превью…
src/resizable/c-resizable-2.vue
<script setup lang="ts">
import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "@/components/ui/resizable"
</script>
<template>
<div class="mx-auto w-full max-w-lg">
<ResizablePanelGroup direction="horizontal" class="rounded-2xl min-h-[200px] border">
<ResizablePanel :default-size="25">
<div class="flex h-full items-center justify-center p-6">
<span class="text-sm font-semibold">Sidebar</span>
</div>
</ResizablePanel>
<ResizableHandle />
<ResizablePanel :default-size="75">
<div class="flex h-full items-center justify-center p-6">
<span class="text-sm font-semibold">Content</span>
</div>
</ResizablePanel>
</ResizablePanelGroup>
</div>
</template>
Установка
npx shadcn-vue@latest add https://revueui.rootapi.dev/r/c-resizable-2.jsonЗависимости реестра
Источник: порт из ReUI (Keenthemes, MIT)