@navinc/base-react-components
Version:
Nav's Pattern Library
54 lines (53 loc) • 2.16 kB
TypeScript
export const Link: import("styled-components").StyledComponent<({ bold, light, ...props }: import("./text").TextProps) => JSX.Element, any, {
$bold?: boolean | undefined;
} & {
as: string | typeof RRLink;
}, "as">;
export const StyledInsight: import("styled-components").StyledComponent<"aside", any, {}, never>;
export function CardInsight({ action, actionHref, actionLabel, className, copy, icon, shouldOpenNewTab, type, title, }: {
action: any;
actionHref: any;
actionLabel?: string | undefined;
className: any;
copy: any;
icon: any;
shouldOpenNewTab: any;
type?: string | undefined;
title: any;
}): JSX.Element;
export namespace CardInsight {
namespace propTypes {
const action: propTypes.Requireable<(...args: any[]) => any>;
const actionHref: propTypes.Requireable<string>;
const actionLabel: propTypes.Requireable<string>;
const type: propTypes.Requireable<string>;
const title: propTypes.Requireable<propTypes.ReactNodeLike>;
const copy: propTypes.Requireable<propTypes.ReactNodeLike>;
const shouldOpenNewTab: propTypes.Requireable<boolean>;
}
}
export default StyledCardInsight;
import { Link as RRLink } from "react-router-dom";
import propTypes_1 from "prop-types";
declare const StyledCardInsight: import("styled-components").StyledComponent<{
({ action, actionHref, actionLabel, className, copy, icon, shouldOpenNewTab, type, title, }: {
action: any;
actionHref: any;
actionLabel?: string | undefined;
className: any;
copy: any;
icon: any;
shouldOpenNewTab: any;
type?: string | undefined;
title: any;
}): JSX.Element;
propTypes: {
action: propTypes.Requireable<(...args: any[]) => any>;
actionHref: propTypes.Requireable<string>;
actionLabel: propTypes.Requireable<string>;
type: propTypes.Requireable<string>;
title: propTypes.Requireable<propTypes.ReactNodeLike>;
copy: propTypes.Requireable<propTypes.ReactNodeLike>;
shouldOpenNewTab: propTypes.Requireable<boolean>;
};
}, any, {}, never>;