@@ -466,13 +466,21 @@ import '@directus/vue-split-panel/index.css';
466
466
</script>
467
467
468
468
<template>
469
- <SplitPanel primary="start">
469
+ <SplitPanel primary="start" class="h-128" >
470
470
<template #start>
471
- <div class="w-full bg-orange-50 flex items-center justify-center">Panel A</div>
471
+ <div class="w-full h-full bg-orange-50 flex items-center justify-center">Panel A</div>
472
472
</template>
473
473
474
474
<template #end>
475
- <div class="w-full h-full bg-blue-50 flex items-center justify-center">Panel B</div>
475
+ <SplitPanel orientation="vertical">
476
+ <template #start>
477
+ <div class="w-full h-full bg-red-50 flex items-center justify-center">Panel B</div>
478
+ </template>
479
+
480
+ <template #end>
481
+ <div class="w-full h-full bg-green-50 flex items-center justify-center">Panel C</div>
482
+ </template>
483
+ </SplitPanel>
476
484
</template>
477
485
</SplitPanel>
478
486
</template>
@@ -487,7 +495,7 @@ By setting `primary` to either `start` or `end`, you can make sure that the prim
487
495
488
496
::: split-panel
489
497
---
490
- class: w-full resize-x
498
+ class: w-full
491
499
primary: start
492
500
size: 350
493
501
size-unit: px
@@ -525,6 +533,10 @@ import '@directus/vue-split-panel/index.css';
525
533
526
534
::
527
535
536
+ :: callout { icon =" i-lucide-info " color =" primary " }
537
+ Resize your browser window to see primary in action.
538
+ ::
539
+
528
540
## Accessibility
529
541
530
542
Uses the [ Window Splitter WAI-ARIA pattern] ( https://www.w3.org/WAI/ARIA/apg/patterns/windowsplitter ) .
@@ -540,3 +552,7 @@ Uses the [Window Splitter WAI-ARIA pattern](https://www.w3.org/WAI/ARIA/apg/patt
540
552
| : kbd { value =" ArrowLeft " } | Moves a vertical splitter left |
541
553
| : kbd { value =" Home " } | Moves the splitter to the configured min-size |
542
554
| : kbd { value =" End " } | Moves the splitter to the configured max-size |
555
+
556
+ :: callout { icon =" i-lucide-person-standing " color =" warning " }
557
+ The divider by default has no styling. Please add your own divider element to handle focus styles.
558
+ ::
0 commit comments