UNPKG

@spaced-out/ui-design-system

Version:
38 lines 1.27 kB
import * as React from 'react'; import type { Flow } from 'flow-to-typescript-codemod'; import type { ColorTypes } from '../../types/typography'; import type { IconType } from '../Icon'; import type { BaseTooltipProps } from '../Tooltip'; type ClassNames = Readonly<{ icon?: string; wrapper?: string; children?: string; container?: string; }>; export declare const PROMPT_CHIP_TYPE: Readonly<{ primary: "primary"; secondary: "secondary"; }>; export type PromptChipType = (typeof PROMPT_CHIP_TYPE)[keyof typeof PROMPT_CHIP_TYPE]; export type PromptChipProps = { classNames?: ClassNames; } & ({ onDismiss?: ((arg1: React.SyntheticEvent<HTMLElement>) => unknown) | null | undefined; dismissable: true; selfDismiss?: boolean; } | { dismissable?: false; }) & { type?: PromptChipType; onClick?: ((arg1: React.SyntheticEvent<HTMLElement>) => unknown) | null | undefined; iconName?: string; iconType?: IconType; children?: React.ReactNode; iconColor?: ColorTypes; rightSlot?: React.ReactNode; showInfoIcon?: boolean; infoIconTooltip?: BaseTooltipProps; }; export declare const PromptChip: Flow.AbstractComponent<PromptChipProps, HTMLDivElement>; export {}; //# sourceMappingURL=PromptChip.d.ts.map