Fray Electron
    Preparing search index...

    Function default

    • Renders a flippable panel with persistent front and back content, animated controls and drag handling. Owns hover, focus, press and side state and manages animation and pointer listeners.

      Parameters

      • title: {
            back?: any;
            canFlip?: boolean;
            canFullscreen?: boolean;
            flipIcons?: { back: ReactNode; front: ReactNode };
            flipLabels?: { back: string; front: string };
            front?: any;
            fullscreen?: boolean;
            onHandleLostPointerCapture: (
                event: PointerEvent<HTMLButtonElement>,
            ) => void;
            onHandlePointerCancel: (event: PointerEvent<HTMLButtonElement>) => void;
            onHandlePointerDown: (event: PointerEvent<HTMLButtonElement>) => void;
            onHandlePointerMove: (event: PointerEvent<HTMLButtonElement>) => void;
            onHandlePointerUp: (event: PointerEvent<HTMLButtonElement>) => void;
            onToggleFullscreen?: () => void;
            showIcons?: boolean;
            showMenu?: boolean;
            showTitle?: boolean;
            title: string;
        }

        Panel title and accessible label.

        • Optionalback?: any

          Content revealed by flipping.

        • OptionalcanFlip?: boolean

          Whether the panel can flip to its back side.

        • OptionalcanFullscreen?: boolean

          Whether to show the fullscreen control; false when the panel already fills the workspace.

        • OptionalflipIcons?: { back: ReactNode; front: ReactNode }

          Icons for switching to each side, overriding the plug-in defaults.

        • OptionalflipLabels?: { back: string; front: string }

          Accessible labels for switching to each side, overriding the plug-in defaults.

        • Optionalfront?: any

          Initially visible content.

        • Optionalfullscreen?: boolean

          Whether the panel is fullscreen.

        • onHandleLostPointerCapture: (event: PointerEvent<HTMLButtonElement>) => void

          Handles loss of handle pointer capture.

        • onHandlePointerCancel: (event: PointerEvent<HTMLButtonElement>) => void

          Handles cancellation of the handle pointer.

        • onHandlePointerDown: (event: PointerEvent<HTMLButtonElement>) => void

          Handles pointer down on the drag handle.

        • onHandlePointerMove: (event: PointerEvent<HTMLButtonElement>) => void

          Handles pointer movement on the drag handle.

        • onHandlePointerUp: (event: PointerEvent<HTMLButtonElement>) => void

          Handles pointer release on the drag handle.

        • OptionalonToggleFullscreen?: () => void

          Called when the fullscreen control is clicked.

        • OptionalshowIcons?: boolean

          Whether to show menu, fullscreen and flip icons; the drag handle stays.

        • OptionalshowMenu?: boolean

          Whether to show the panel menu control.

        • OptionalshowTitle?: boolean

          Whether to show the title; defaults to true.

        • title: string

          Panel title and accessible label.

      Returns Element

      The panel and its controls.