UNPKG

@activecollab/components

Version:

ActiveCollab Components

16 lines 837 B
import { ComponentPropsWithoutRef, ReactElement, ReactNode, ElementType } from "react"; import { PolymorphicComponentPropsWithRef } from "../../utils/types"; export interface CommandPaletteItemProps extends ComponentPropsWithoutRef<"a"> { title?: string; renderIcon?: () => ReactNode; className?: string; index?: number; selected?: number; loading?: boolean; } export type PolymorphicCommandPaletteItemProps<C extends ElementType> = PolymorphicComponentPropsWithRef<C, CommandPaletteItemProps>; export type CommandPaletteComponent = <C extends ElementType = typeof CommandPaletteItem>(props: PolymorphicCommandPaletteItemProps<C>) => ReactElement | ReactNode | null; export declare const CommandPaletteItem: CommandPaletteComponent & { displayName?: string; }; //# sourceMappingURL=CommandPaletteItem.d.ts.map