import React from 'react'; import { ReactIconProps } from '@groww-tech/icon-store'; import './chip.css'; export declare enum IconPosition { LEFT = "left", RIGHT = "right" } declare type RequiredProps = { text: React.ReactNode; }; declare type DefaultProps = { /** * Event handler called when the user clicks on the chip */ onClick: (e: React.MouseEvent) => void; /** * Position of icon with respect to Chip text, if IconComponent is provided */ iconPosition: IconPosition; /** * iconComponent function returns svg icon component, we pass some extra props from Chip component */ iconComponent: ((props: ReactIconProps) => JSX.Element) | null; /** * This class will be applied on both, text and icon */ parentClass: string; /** * Custom class for text decoration */ textClass: string; }; export declare type Props = RequiredProps & DefaultProps; declare const _default: React.MemoExoticComponent<{ (props: Props): JSX.Element; defaultProps: { onClick: () => void; iconPosition: IconPosition; iconComponent: null; textClass: string; parentClass: string; }; }>; export default _default;