PyBlade/ui
Menu⌄
DocsComposantsResizable

Resizable

Panels you resize by dragging the handle between them, or with the arrow keys.

Alpine.js3 fichiers

Installation

pyblade-ui add resizable

Utilisation

Les balises <pb-ui.resizable-group> <pb-ui.resizable-panel> <pb-ui.resizable-handle> sont disponibles dans tous vos templates.

<pb-ui.resizable-group direction="horizontal" class="min-h-48 rounded-lg border">
  <pb-ui.resizable-panel :size="50"><div class="p-6">One</div></pb-ui.resizable-panel>
  <pb-ui.resizable-handle with_handle />
  <pb-ui.resizable-panel :size="50"><div class="p-6">Two</div></pb-ui.resizable-panel>
</pb-ui.resizable-group>

Props

<pb-ui.resizable-group>
PropDéfaut
direction'horizontal'
<pb-ui.resizable-panel>
PropDéfaut
size50
min10
<pb-ui.resizable-handle>
PropDéfaut
with_handleFalse

Tout autre attribut (class, id, x-on:click, hx-post…) est transmis à l'élément racine ; vos classes Tailwind l'emportent sur celles du composant.