- Prop
width- Type
string | number | undefined- Default
- —
- Requirement
- optional
Docs Components Assistant
AssistantSidebar
- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
import { AssistantSidebar } from "@grassroot/ui-react/assistant"; export default function AssistantSidebarDemo() { return <AssistantSidebar width={320} resizable={true}>Conversation rail</AssistantSidebar>;}- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
<script setup lang="ts">import { AssistantSidebar } from "@grassroot/ui-vue/assistant";</script> <template> <AssistantSidebar :width="320" :resizable="true">Conversation rail</AssistantSidebar></template>- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
import "./ensure-compiler";import { ChangeDetectionStrategy, Component } from "@angular/core";import { GrassrootAssistantSidebar } from "@grassroot/ui-angular/assistant"; @Component({ selector: "app-assistant-sidebar-demo", standalone: true, imports: [GrassrootAssistantSidebar], changeDetection: ChangeDetectionStrategy.OnPush, template: `<grassroot-assistant-sidebar [width]="width" [resizable]="resizable">Conversation rail</grassroot-assistant-sidebar>`,})export class AssistantSidebarDemoComponent { protected readonly width = 320; protected readonly resizable = true;} export default AssistantSidebarDemoComponent;- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
<script lang="ts"> import { AssistantSidebar } from "@grassroot/ui-svelte/assistant"; </script> <AssistantSidebar width={320} resizable={true}>Conversation rail</AssistantSidebar>- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
/** @jsxImportSource solid-js */import { AssistantSidebar } from "@grassroot/ui-solid/assistant"; export default function AssistantSidebarDemo() { return <AssistantSidebar width={320} resizable={true}>Conversation rail</AssistantSidebar>;}Installation
API Reference
Import
import { AssistantSidebar } from "@grassroot/ui-react/assistant";
Props
Prop
Type
Default
Requirement
widthstring | number | undefined—
optional
resizableboolean | undefined—
optional
- Prop
resizable- Type
boolean | undefined- Default
- —
- Requirement
- optional
Content regions
children
Native attributes
Standard DOM and ARIA attributes not listed above spread onto the root element.
Import
import { AssistantSidebar } from "@grassroot/ui-vue/assistant";
Props
Prop
Type
Default
Requirement
widthstring | number320optional
resizablebooleantrueoptional
- Prop
width- Type
string | number- Default
320- Requirement
- optional
- Prop
resizable- Type
boolean- Default
true- Requirement
- optional
Content regions
default
Import
import "./ensure-compiler";
import { ChangeDetectionStrategy, Component } from "@angular/core";
import { GrassrootAssistantSidebar } from "@grassroot/ui-angular/assistant";
Props
Prop
Type
Default
Requirement
widthnumber | string320optional
resizablebooleantrueoptional
contentAssistantTemplate—
optional
- Prop
width- Type
number | string- Default
320- Requirement
- optional
- Prop
resizable- Type
boolean- Default
true- Requirement
- optional
- Prop
content- Type
AssistantTemplate- Default
- —
- Requirement
- optional
Content regions
default
Import
import { AssistantSidebar } from "@grassroot/ui-svelte/assistant";
Props
Prop
Type
Default
Requirement
widthnumber | string320optional
resizablebooleantrueoptional
classstring—
optional
stylestring—
optional
- Prop
width- Type
number | string- Default
320- Requirement
- optional
- Prop
resizable- Type
boolean- Default
true- Requirement
- optional
- Prop
class- Type
string- Default
- —
- Requirement
- optional
- Prop
style- Type
string- Default
- —
- Requirement
- optional
Content regions
children
Import
import { AssistantSidebar } from "@grassroot/ui-solid/assistant";
Props
Prop
Type
Default
Requirement
widthnumber | string—
optional
resizableboolean—
optional
- Prop
width- Type
number | string- Default
- —
- Requirement
- optional
- Prop
resizable- Type
boolean- Default
- —
- Requirement
- optional
Content regions
children
Native attributes
Standard DOM and ARIA attributes not listed above spread onto the root element.