UNPKG

@abgov/react-components

Version:

Government of Alberta - UI components for React

31 lines (30 loc) 982 B
import { GoabChipTheme, GoabChipVariant, Margins } from '@abgov/ui-components-common'; interface WCProps extends Margins { ref: React.RefObject<HTMLElement | null>; leadingicon?: string; icontheme?: GoabChipTheme; error?: string; deletable?: string; content: string; variant?: GoabChipVariant; testid?: string; } declare module "react" { namespace JSX { interface IntrinsicElements { "goa-chip": WCProps & React.HTMLAttributes<HTMLElement>; } } } export interface GoabChipProps extends Margins { onClick?: () => void; deletable?: boolean; leadingIcon?: string; iconTheme?: GoabChipTheme; error?: boolean; content: string; variant?: GoabChipVariant; testId?: string; } export declare const GoabChip: ({ leadingIcon, iconTheme, deletable, error, variant, content, onClick, mt, mr, mb, ml, testId, }: GoabChipProps) => import("react/jsx-runtime").JSX.Element; export default GoabChip;