@payfit/unity-components
Version:
16 lines (15 loc) • 568 B
TypeScript
import { ReactElement } from 'react';
export type AnchorPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
interface AnchorProps {
children: [ReactElement, ReactElement];
position?: AnchorPosition;
offset?: number | [number, number];
}
/**
* The Anchor component is a primitive used to anchor a small component to a larger one in any of the large component's corners.
*/
declare const Anchor: {
({ children, position, offset, }: AnchorProps): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
export { Anchor };