UNPKG

@eccenca/gui-elements

Version:

GUI elements based on other libraries, usable in React application, written in Typescript.

17 lines (16 loc) 838 B
import React from "react"; import { HeaderPanel as CarbonHeaderPanel } from "@carbon/react"; type CarbonHeaderPanelProps = React.ComponentProps<typeof CarbonHeaderPanel>; export interface ApplicationToolbarPanelProps extends CarbonHeaderPanelProps, React.HTMLAttributes<HTMLDivElement> { /** * Event handler getting called when the pointer device leaves the area of the panel menu. * Could be used to close it automatically. */ onLeave?: () => void; /** * Event handler getting called when the the user clicks outside of the panel menu area. */ onOutsideClick?: () => void; } export declare const ApplicationToolbarPanel: ({ children, className, onLeave, onOutsideClick, ...otherCarbonHeaderPanelProps }: ApplicationToolbarPanelProps) => React.JSX.Element; export default ApplicationToolbarPanel;