@atlaskit/datetime-picker
Version:
A date time picker allows the user to select an associated date and time.
13 lines (12 loc) • 824 B
TypeScript
import type { MenuProps, OptionType } from '@atlaskit/select/types';
/**
* Top-layer version of the fixed layer menu used in the time picker.
*
* Uses `Popover` + `useAnchoredPopover` so the time options list renders
* in the browser's top layer via the native Popover API and is positioned
* via CSS Anchor Positioning. This avoids overflow clipping, z-index wars,
* and portal-based layering.
*
* Gated behind the `platform-dst-top-layer` feature flag.
*/
export declare const FixedLayerMenuTopLayer: ({ className, clearValue, cx, getStyles, getValue, hasValue, innerProps, innerRef, isLoading, isMulti, isRtl, maxMenuHeight, menuPlacement, menuPosition, menuShouldScrollIntoView, minMenuHeight, options, placement, selectOption, selectProps, setValue, children, ...rest }: MenuProps<OptionType>) => JSX.Element;