@navinc/base-react-components
Version:
Nav's Pattern Library
21 lines (20 loc) • 1.05 kB
TypeScript
import { ReactNode } from 'react';
import { IconName } from './icons/index.js';
declare type InsightType = 'improve' | 'neutral' | 'positive' | 'negative';
export declare const StyledInsight: import("styled-components").StyledComponent<"aside", import("styled-components").DefaultTheme, {
type?: InsightType | undefined;
}, never>;
declare type CardInsightProps = {
action?: () => void;
actionHref?: string;
actionLabel?: string;
type?: InsightType;
title?: ReactNode;
copy?: ReactNode;
shouldOpenNewTab?: boolean;
className?: string;
icon?: IconName;
};
export declare const CardInsight: ({ action, actionHref, actionLabel, className, copy, icon, shouldOpenNewTab, type, title, }: CardInsightProps) => JSX.Element;
declare const StyledCardInsight: import("styled-components").StyledComponent<({ action, actionHref, actionLabel, className, copy, icon, shouldOpenNewTab, type, title, }: CardInsightProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
export default StyledCardInsight;