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-panelbash
npx grassroot@latest add ui/resizable-panelbash
yarn dlx grassroot add ui/resizable-panelbash
bunx grassroot add ui/resizable-panelAPI Reference
| Prop | Type | Default |
|---|---|---|
labelMono uppercase eyebrow shown above the content. | string | undefined | — |