UNPKG

@spaced-out/ui-design-system

Version:
29 lines 1.06 kB
import * as React from 'react'; import type { Flow } from 'flow-to-typescript-codemod'; import type { ColorTypes } from '../../types/typography'; import type { IconProps, IconSize, IconType } from '../../components/Icon'; type ClassNames = Readonly<{ icon?: string; button?: string; }>; export interface ClickableIconProps extends Omit<IconProps, 'disabled' | 'classNames' | 'onClick'> { disabled?: boolean; classNames?: ClassNames; onClick?: React.MouseEventHandler<HTMLButtonElement>; testId?: string; } export declare const ClickableIcon: Flow.AbstractComponent<ClickableIconProps, HTMLButtonElement>; export interface CloseIconProps { size?: IconSize; type?: IconType; color?: ColorTypes; onClick?: React.MouseEventHandler<HTMLButtonElement>; className?: string; ariaLabel?: string; disabled?: boolean; classNames?: ClassNames; testId?: string; } export declare const CloseIcon: Flow.AbstractComponent<CloseIconProps, HTMLButtonElement>; export {}; //# sourceMappingURL=ClickableIcon.d.ts.map