UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

21 lines (20 loc) 811 B
import type { CSSInterpolation } from '@ant-design/cssinjs'; import type { AliasToken } from '../theme/internal'; import type { TokenWithCommonCls } from '../theme/util/genComponentStyleHook'; import type { ArrowToken } from './roundedArrow'; export declare const MAX_VERTICAL_CONTENT_RADIUS = 8; export interface ArrowOffsetToken { } export declare function getArrowOffsetToken(options: { contentRadius: number; limitVerticalRadius?: boolean; }): ArrowOffsetToken; export default function getArrowStyle<Token extends TokenWithCommonCls<AliasToken> & ArrowOffsetToken & ArrowToken>(token: Token, colorBg: string, options?: { arrowDistance?: number; arrowPlacement?: { left?: boolean; right?: boolean; top?: boolean; bottom?: boolean; }; }): CSSInterpolation;