@octopusdeploy/design-system-components
Version:
The design systems component library.
26 lines (25 loc) • 835 B
TypeScript
import type { DesignSystemLinkHref } from "../../routing";
export type LiteralLink = {
type: "link";
text: string;
url: DesignSystemLinkHref;
newTab?: boolean;
};
export type LiteralExternalLink = {
type: "externalLink";
text: string;
href: string;
};
export type LiteralInlineCode = {
type: "inline-code";
text: string;
};
export type LiteralBold = {
type: "bold";
text: string;
};
export type LiteralNode = LiteralLink | LiteralExternalLink | LiteralInlineCode | LiteralBold;
export declare const link: (text: string, url: DesignSystemLinkHref, newTab?: boolean) => LiteralLink;
export declare const externalLink: (text: string, href: string) => LiteralExternalLink;
export declare const code: (text: string) => LiteralInlineCode;
export declare const bold: (text: string) => LiteralBold;