From 897c9afdf6e1eb600f4f401a2acdb8ff43cf18b0 Mon Sep 17 00:00:00 2001 From: peterkogo Date: Tue, 16 Jan 2024 17:45:57 +0100 Subject: [PATCH] added typedocs for Panel --- packages/react/src/components/Panel/index.tsx | 3 +++ packages/svelte/src/lib/container/Panel/types.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/packages/react/src/components/Panel/index.tsx b/packages/react/src/components/Panel/index.tsx index cde20716..eeb01a15 100644 --- a/packages/react/src/components/Panel/index.tsx +++ b/packages/react/src/components/Panel/index.tsx @@ -6,6 +6,9 @@ import { useStore } from '../../hooks/useStore'; import type { ReactFlowState } from '../../types'; export type PanelProps = HTMLAttributes & { + /** Set position of the panel + * @example 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' + */ position?: PanelPosition; children: ReactNode; }; diff --git a/packages/svelte/src/lib/container/Panel/types.ts b/packages/svelte/src/lib/container/Panel/types.ts index 2a1225cb..b6e4dd0a 100644 --- a/packages/svelte/src/lib/container/Panel/types.ts +++ b/packages/svelte/src/lib/container/Panel/types.ts @@ -4,6 +4,9 @@ import type { HTMLAttributes } from 'svelte/elements'; export type PanelProps = HTMLAttributes & { 'data-testid'?: string; 'data-message'?: string; + /** Set position of the panel + * @example 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' + */ position?: PanelPosition; style?: string; class?: string;