mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 09:06:19 +08:00
init: the first public commit for AFFiNE
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import type { ReactNode, CSSProperties } 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;
|
||||
Reference in New Issue
Block a user