@hackplan/polaris
Version:
Shopify’s product component library
18 lines (17 loc) • 643 B
TypeScript
import React from 'react';
import { Action } from '../../types';
export interface Props {
/** The content to display inside the callout card. */
children?: React.ReactNode;
/** The title of the card */
title: string;
/** URL to the card illustration */
illustration: string;
/** Primary action for the card */
primaryAction: Action;
/** Secondary action for the card */
secondaryAction?: Action;
/** Callback when banner is dismissed */
onDismiss?(): void;
}
export default function CalloutCard({ title, children, illustration, primaryAction, secondaryAction, onDismiss, }: Props): JSX.Element;