Skip to content

1681-engine / react / PanelProps

Interface: PanelProps ​

Defined in: src/react/Panel.tsx:9

Properties ​

at? ​

ts
optional at?: Point;

Defined in: src/react/Panel.tsx:17

Where it wants to stand, screen px; default: centred. It is moved back inside the screen either way.


children? ​

ts
optional children?: ReactNode;

Defined in: src/react/Panel.tsx:13


className? ​

ts
optional className?: string;

Defined in: src/react/Panel.tsx:20


ts
optional footer?: ReactNode;

Defined in: src/react/Panel.tsx:19

Under the scrolling body, never scrolled away (a row of buttons).


onClose? ​

ts
optional onClose?: () => void;

Defined in: src/react/Panel.tsx:12

The close button's action; no close button without it.

Returns ​

void


style? ​

ts
optional style?: CSSProperties;

Defined in: src/react/Panel.tsx:21


title ​

ts
title: ReactNode;

Defined in: src/react/Panel.tsx:10


titleText? ​

ts
optional titleText?: string;

Defined in: src/react/Panel.tsx:23

The title as plain text, for the close button's spoken name when title is not a string.


width? ​

ts
optional width?: number;

Defined in: src/react/Panel.tsx:15

The width it wants, in px (its own units); default: as wide as its content.

Released under the MIT License.