UNPKG

@activecollab/components

Version:

ActiveCollab Components

13 lines 826 B
import { ElementType, ReactElement, ReactNode } from "react"; import { CommandPaletteItemProps } from "./CommandPaletteItem"; import { PolymorphicComponentPropsWithRef } from "../../utils/types"; export interface CommandPaletteCommandItemProps extends CommandPaletteItemProps { title: string; renderIcon: () => ReactNode; } export type PolymorphicCommandPaletteCommandItemProps<C extends ElementType> = PolymorphicComponentPropsWithRef<C, CommandPaletteCommandItemProps>; export type CommandPaletteComponent = <C extends ElementType = typeof CommandPaletteCommandItem>(props: PolymorphicCommandPaletteCommandItemProps<C>) => ReactElement | ReactNode | null; export declare const CommandPaletteCommandItem: CommandPaletteComponent & { displayName?: string; }; //# sourceMappingURL=CommandPaletteCommandItem.d.ts.map