@awsui/components-react
Version:
AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A
28 lines (27 loc) • 920 B
TypeScript
import { BaseComponentProps } from '../internal/base-component';
export interface PopoverProps extends BaseComponentProps {
position?: PopoverProps.Position;
size?: PopoverProps.Size;
fixedWidth?: boolean;
triggerType?: PopoverProps.TriggerType;
children?: React.ReactNode;
header?: string;
content?: React.ReactNode;
dismissButton?: boolean;
dismissAriaLabel?: string;
}
export declare type InternalPosition = 'right-top' | 'right-bottom' | 'left-top' | 'left-bottom' | 'top-center' | 'bottom-center';
export interface Offset {
left: number;
top: number;
}
export interface BoundingBox {
width: number;
height: number;
}
export declare type BoundingOffset = BoundingBox & Offset;
export declare namespace PopoverProps {
type Position = 'top' | 'right' | 'bottom' | 'left';
type Size = 'small' | 'medium' | 'large';
type TriggerType = 'text' | 'custom';
}