@shopify/polaris
Version:
Shopify’s admin product component library
32 lines • 1.34 kB
TypeScript
import React from 'react';
import type { DisableableAction, ComplexAction } from '../../types';
import { Header, Section, Subsection } from './components';
export type { CardSectionProps, CardHeaderProps, CardSubsectionProps, } from './components';
export interface CardProps {
/** Title content for the card */
title?: React.ReactNode;
/** Inner content of the card */
children?: React.ReactNode;
/** A less prominent card */
subdued?: boolean;
/** Auto wrap content in section */
sectioned?: boolean;
/** Card header actions */
actions?: DisableableAction[];
/** Primary action in the card footer */
primaryFooterAction?: ComplexAction;
/** Secondary actions in the card footer */
secondaryFooterActions?: ComplexAction[];
/** The content of the disclosure button rendered when there is more than one secondary footer action */
secondaryFooterActionsDisclosureText?: string;
/** Alignment of the footer actions on the card, defaults to right */
footerActionAlignment?: 'right' | 'left';
/** Allow the card to be hidden when printing */
hideOnPrint?: boolean;
}
export declare const Card: React.FunctionComponent<CardProps> & {
Header: typeof Header;
Section: typeof Section;
Subsection: typeof Subsection;
};
//# sourceMappingURL=Card.d.ts.map