UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

53 lines 1.84 kB
import * as React from 'react'; import { GrowthBehavior } from '@workday/canvas-kit-react/common'; import { CSProps } from '@workday/canvas-kit-styling'; export interface PopupButtonGroupProps extends GrowthBehavior, CSProps { /** * The contents of the PopupButtonGroup. Can be `Button` children or any valid elements. */ children?: React.ReactNode; /** * The position of elements within the PopupButtonGroup. Can be `start`, `center`, or `end`. * @default 'end' */ position?: 'start' | 'center' | 'end'; } export declare const popupButtonGroupStencil: import("@workday/canvas-kit-styling").Stencil<{ position: { start: { justifyContent: string; }; center: { justifyContent: string; }; end: { justifyContent: string; }; }; grow: { true: { '& button': { width: string; }; }; }; }, {}, {}, never, never>; export declare const PopupButtonGroup: import("@workday/canvas-kit-react/common").ElementComponentM<"div", PopupButtonGroupProps, { state: { stackRef: React.RefObject<HTMLDivElement>; targetRef: React.RefObject<HTMLButtonElement>; initialFocusRef: React.RefObject<any> | undefined; returnFocusRef: React.RefObject<any> | undefined; placement: import("@popperjs/core").Placement; id: string; visibility: "hidden" | "visible"; }; events: { updatePlacement(data: { placement: import("@popperjs/core").Placement; }): void; show(event?: Event | React.SyntheticEvent<Element, Event> | undefined): void; hide(event?: Event | React.SyntheticEvent<Element, Event> | undefined): void; }; }>; //# sourceMappingURL=PopupButtonGroup.d.ts.map