UNPKG

@shopify/cli-kit

Version:

A set of utilities, interfaces, and models that are common across all the platform features

24 lines (23 loc) 778 B
import { BannerType } from './Banner.js'; import { BoldToken, InlineToken, LinkToken, TokenItem } from './TokenizedText.js'; import { TabularDataProps } from './TabularData.js'; import { FunctionComponent } from 'react'; export interface CustomSection { title?: string; body: TabularDataProps | TokenItem; } export interface AlertProps { type: Exclude<BannerType, 'external_error'>; headline?: TokenItem<Exclude<InlineToken, LinkToken | BoldToken>>; body?: TokenItem; nextSteps?: TokenItem<InlineToken>[]; reference?: TokenItem<InlineToken>[]; link?: { label: string; url: string; }; orderedNextSteps?: boolean; customSections?: CustomSection[]; } declare const Alert: FunctionComponent<AlertProps>; export { Alert };