mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-11 23:26:30 +08:00
24 lines
739 B
TypeScript
24 lines
739 B
TypeScript
import type { CSSProperties, ReactNode } from 'react';
|
|
import { PopperProps } from '../popper';
|
|
|
|
export type PopoverDirection =
|
|
| 'none'
|
|
| 'left-top'
|
|
| 'left-bottom'
|
|
| 'right-top'
|
|
| 'right-bottom';
|
|
|
|
export interface PopoverContainerProps {
|
|
children?: ReactNode;
|
|
/**
|
|
* The pop-up window points to. The pop-up window has three rounded corners, one is a right angle, and the right angle is the direction of the pop-up window.
|
|
*/
|
|
direction?: PopoverDirection;
|
|
style?: CSSProperties;
|
|
}
|
|
export type PopoverProps = {
|
|
// Popover border-radius style will auto set by placement, popoverDirection can custom set it
|
|
popoverDirection?: PopoverDirection;
|
|
style?: CSSProperties;
|
|
} & PopperProps;
|