UNPKG

@carbon/react

Version:

React components for the Carbon Design System

16 lines (15 loc) 535 B
/** * Copyright IBM Corp. 2016, 2025 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import type { Placement } from '@floating-ui/react'; /** * Maps popover alignment values to their corresponding replacement values. * * @param align - The original align value. * @returns The new align value based on mapping or the original align if no * mapping exists. */ export declare const mapPopoverAlign: (align: string) => Placement;