ChatSidenavProps
Unpublished development API. This package is under development and is not available as a published release.
Controls navigation mode and drawer visibility, persistent content slots, labels, and optional keyboard shortcuts.
import type { ChatSidenavProps } from '@threadplane/react/chat';
Declaration
export interface ChatSidenavProps {
readonly children?: ReactNode;
readonly className?: string;
readonly closeLabel?: string;
readonly collapsedContent?: ReactNode;
readonly collapseLabel?: string;
readonly expandLabel?: string;
readonly label?: string;
readonly launcherLabel?: string;
readonly mode: ChatSidenavMode;
readonly onModeChange: (mode: Exclude<ChatSidenavMode, 'drawer'>) => void;
readonly onOpenChange: (open: boolean) => void;
readonly onSearch?: () => void;
readonly open: boolean;
readonly searchLabel?: string;
readonly searchShortcut?: boolean;
readonly toggleShortcut?: boolean;
}
Members
children
readonly children?: ReactNode;
className
readonly className?: string;
closeLabel
readonly closeLabel?: string;
collapsedContent
readonly collapsedContent?: ReactNode;
collapseLabel
readonly collapseLabel?: string;
expandLabel
readonly expandLabel?: string;
launcherLabel
readonly launcherLabel?: string;
onOpenChange
readonly onOpenChange: (open: boolean) => void;
onSearch
readonly onSearch?: () => void;
searchLabel
readonly searchLabel?: string;
searchShortcut
readonly searchShortcut?: boolean;
toggleShortcut
readonly toggleShortcut?: boolean;