@spaced-out/ui-design-system
Version:
Sense UI components library
44 lines • 1.42 kB
TypeScript
import * as React from 'react';
import type { Flow } from 'flow-to-typescript-codemod';
import type { ColorTypes } from '../../types/typography';
import type { IconType } from '../../components/Icon';
import type { BaseTooltipProps } from '../../components/Tooltip';
type ClassNames = Readonly<{
icon?: string;
wrapper?: string;
children?: string;
leftSlot?: string;
rightSlot?: 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;
testId?: string;
} & ({
onDismiss?: (e: React.SyntheticEvent<HTMLElement>) => unknown;
dismissable: true;
selfDismiss?: boolean;
} | {
dismissable?: false;
onDismiss?: never;
selfDismiss?: never;
}) & {
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;
isMultiline?: boolean;
};
export declare const PromptChip: Flow.AbstractComponent<PromptChipProps, HTMLDivElement>;
export {};
//# sourceMappingURL=PromptChip.d.ts.map