UNPKG

@octopusdeploy/design-system-components

Version:
21 lines (20 loc) 970 B
import * as React from "react"; import type { DesignSystemLinkHref } from "../../routing"; export type CalloutLink = { type: "link"; text: string; url: DesignSystemLinkHref; newTab?: boolean; }; export type CalloutExternalLink = { type: "externalLink"; text: string; href: string; }; export type CalloutContent = Array<string | CalloutLink | CalloutExternalLink | CalloutContent>; export declare const calloutLink: (text: string, url: DesignSystemLinkHref, newTab?: boolean) => CalloutLink | ""; export declare const calloutExternalLink: (text: string, href: string) => CalloutExternalLink; type CalloutContentValue = string | number | boolean | null | undefined | CalloutLink | CalloutExternalLink | CalloutContent; export declare const calloutContent: (strings: TemplateStringsArray, ...values: CalloutContentValue[]) => CalloutContent; export declare const renderCalloutContent: (content: CalloutContent) => React.ReactElement; export {};