@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
20 lines (19 loc) • 868 B
TypeScript
import type { Ref } from 'react';
import type { CenterProps } from 'react-layout-kit';
import type { ActionIconProps } from "../ActionIcon";
import type { DropdownProps } from "../Dropdown";
import type { MenuInfo, MenuItemType } from "../Menu";
export type ActionIconGroupEvent = Pick<MenuInfo, 'key' | 'keyPath' | 'domEvent'>;
export interface ActionIconGroupProps extends Omit<CenterProps, 'children'> {
actionIconProps?: Partial<Omit<ActionIconProps, 'icon' | 'size' | 'ref'>>;
disabled?: boolean;
glass?: boolean;
items?: MenuItemType[];
menu?: DropdownProps['menu'];
onActionClick?: (action: ActionIconGroupEvent) => void;
ref?: Ref<HTMLDivElement>;
shadow?: boolean;
size?: ActionIconProps['size'];
variant?: 'filled' | 'outlined' | 'borderless';
}
export type { MenuItemType as ActionIconGroupItemType } from "../Menu";