added typedocs for Panel
This commit is contained in:
@@ -6,6 +6,9 @@ import { useStore } from '../../hooks/useStore';
|
|||||||
import type { ReactFlowState } from '../../types';
|
import type { ReactFlowState } from '../../types';
|
||||||
|
|
||||||
export type PanelProps = HTMLAttributes<HTMLDivElement> & {
|
export type PanelProps = HTMLAttributes<HTMLDivElement> & {
|
||||||
|
/** Set position of the panel
|
||||||
|
* @example 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right'
|
||||||
|
*/
|
||||||
position?: PanelPosition;
|
position?: PanelPosition;
|
||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -4,6 +4,9 @@ import type { HTMLAttributes } from 'svelte/elements';
|
|||||||
export type PanelProps = HTMLAttributes<HTMLDivElement> & {
|
export type PanelProps = HTMLAttributes<HTMLDivElement> & {
|
||||||
'data-testid'?: string;
|
'data-testid'?: string;
|
||||||
'data-message'?: string;
|
'data-message'?: string;
|
||||||
|
/** Set position of the panel
|
||||||
|
* @example 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right'
|
||||||
|
*/
|
||||||
position?: PanelPosition;
|
position?: PanelPosition;
|
||||||
style?: string;
|
style?: string;
|
||||||
class?: string;
|
class?: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user