UNPKG

@base-ui-components/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

25 lines (24 loc) 837 B
import * as React from 'react'; import type { BaseUIComponentProps } from '../../utils/types.js'; import type { Align, Side } from '../../utils/useAnchorPositioning.js'; /** * Displays an element positioned against the preview card anchor. * Renders a `<div>` element. * * Documentation: [Base UI Preview Card](https://base-ui.com/react/components/preview-card) */ declare const PreviewCardArrow: React.ForwardRefExoticComponent<PreviewCardArrow.Props & React.RefAttributes<HTMLDivElement>>; declare namespace PreviewCardArrow { interface State { /** * Whether the preview card is currently open. */ open: boolean; side: Side; align: Align; uncentered: boolean; } interface Props extends BaseUIComponentProps<'div', State> { } } export { PreviewCardArrow };