CLI previewInstall commands shown on this site are not released yet.

DocsComponentsPrimitives

ResizablePanel

React example follows below.
ts
import { ResizablePanel } from "@grassroot/ui-react";
<ResizablePanel />
ts
<script setup lang="ts">
import { ResizablePanel } from "@grassroot/ui-vue";
</script>
<template>
<ResizablePanel />
</template>
ts
import { Component } from "@angular/core";
import { GrassrootResizablePanel } from "@grassroot/ui-angular";
@Component({
selector: "app-example",
standalone: true,
imports: [GrassrootResizablePanel],
template: `
<grassroot-resizable-panel />
`,
})
export class ExampleComponent {
}
ts
<script lang="ts">
import { ResizablePanel } from "@grassroot/ui-svelte";
</script>
<ResizablePanel />
ts
import { ResizablePanel } from "@grassroot/ui-solid";
export function Example() {
return (
<>
<ResizablePanel />
</>
);
}

Installation

bash
pnpm dlx grassroot add ui/resizable-panel
bash
npx grassroot@latest add ui/resizable-panel
bash
yarn dlx grassroot add ui/resizable-panel
bash
bunx grassroot add ui/resizable-panel

API Reference

ResizablePanelProps
PropTypeDefault
labelMono uppercase eyebrow shown above the content.string | undefined