@grafana/runtime
Version:
Grafana Runtime Library
22 lines (21 loc) • 766 B
TypeScript
import * as React from 'react';
interface FolderPickerProps {
value?: string;
/** Show an invalid state around the folder picker */
invalid?: boolean;
showRootFolder?: boolean;
excludeUIDs?: string[];
rootFolderUID?: string;
permission?: 'view' | 'edit';
onChange?: (folderUID: string | undefined, folderName: string | undefined) => void;
clearable?: boolean;
}
type FolderPickerComponentType = React.ComponentType<FolderPickerProps>;
/**
* Used to bootstrap the FolderPicker during application start
*
* @internal
*/
export declare function setFolderPicker(component: FolderPickerComponentType): void;
export declare function FolderPicker(props: FolderPickerProps): import("react/jsx-runtime").JSX.Element | null;
export {};