Skip to content

ActionPanelProps

type ActionPanelProps = {
anchor: ActionPanelAnchor;
boundary?: Element | null;
children?: React.ReactNode;
className?: string;
dismissOnEscape?: boolean;
dismissOnOutsideClick?: boolean;
offset?: number;
onClose?: () => void;
open?: boolean;
placement?: "bottom-start" | "bottom-end" | "top-start" | "top-end";
style?: React.CSSProperties;
};

Defined in: react/src/index.tsx:345

PropertyTypeDescriptionDefined in
anchorActionPanelAnchorAnchor for the panel: an element, a rect, or a function that returns one.react/src/index.tsx:347
boundary?Element | nullOptional element used to clamp the panel position (e.g. the editor container).react/src/index.tsx:357
children?React.ReactNode-react/src/index.tsx:364
className?string-react/src/index.tsx:362
dismissOnEscape?booleanClose on Escape. Default: true.react/src/index.tsx:361
dismissOnOutsideClick?booleanClose on outside pointerdown. Default: true.react/src/index.tsx:359
offset?numberPixel offset between the anchor and the panel. Default: 4.react/src/index.tsx:355
onClose?() => voidCalled when the user requests dismissal (Escape, outside click, scroll-out).react/src/index.tsx:351
open?booleanOpen state. When false, the panel is not rendered.react/src/index.tsx:349
placement?"bottom-start" | "bottom-end" | "top-start" | "top-end"Where to place the panel relative to the anchor. Default: ‘bottom-start’.react/src/index.tsx:353
style?React.CSSProperties-react/src/index.tsx:363