# Resizable: Right to left

> Panels and arrow keys follow the reading direction.

Example: https://hextaui.com/docs/resizable/examples/rtl
Component docs: https://hextaui.com/docs/resizable.md

## Add this example

```bash
npx shadcn@latest add https://hextaui.com/r/resizable-rtl.json
```

This adds `components/examples/resizable/rtl.tsx` with the Resizable component and the HextaUI theme tokens.

## Source

```tsx title="components/examples/resizable/rtl.tsx"
import {
  ResizableHandle,
  ResizablePanel,
  ResizablePanelGroup,
} from "@/components/ui/resizable"

export function ResizableRtl() {
  return (
    <div
      dir="rtl"
      className="h-56 w-full max-w-md overflow-hidden rounded-xl border"
    >
      <ResizablePanelGroup>
        <ResizablePanel defaultSize="35%" minSize="20%">
          <div className="flex h-full items-center justify-center text-sm font-medium">
            القائمة
          </div>
        </ResizablePanel>
        <ResizableHandle showSize />
        <ResizablePanel minSize="20%">
          <div className="flex h-full items-center justify-center text-sm font-medium">
            المحتوى
          </div>
        </ResizablePanel>
      </ResizablePanelGroup>
    </div>
  )
}
```

## Props in this example

### ResizablePanel

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `defaultSize` | `number \| string` | – |  |
| `minSize` | `number \| string` | – |  |

### ResizableHandle

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `showSize` | `boolean \| "percent" \| "pixels"` | `false` |  |

## More Resizable examples

- [Collapsible](https://hextaui.com/docs/resizable/examples/collapsible.md)
- [Size readout](https://hextaui.com/docs/resizable/examples/size.md)
- [Remember the layout](https://hextaui.com/docs/resizable/examples/persist.md)
- [Vertical](https://hextaui.com/docs/resizable/examples/vertical.md)
- [Visible grip](https://hextaui.com/docs/resizable/examples/handle.md)
