@combine-labs/combine-polaris
Version:
Combine Lab's product component library. Forked from Shopify's Polaris.
34 lines (33 loc) • 1.08 kB
TypeScript
import * as React from 'react';
import { Action, DisableableAction } from '../../types';
import { Header, Section } from './components';
export interface Props {
/** Title content for the card */
title?: React.ReactNode;
/** Inner content of the card */
children?: React.ReactNode;
/** A less prominent card */
subdued?: boolean;
/** A more prominent card */
emphasis?: boolean;
/** Auto wrap content in section */
sectioned?: boolean;
/** Card header actions */
actions?: DisableableAction[];
/** Primary action in the card footer */
primaryFooterAction?: Action;
/** Secondary action in the card footer */
secondaryFooterAction?: Action;
/** Assign styles by project */
project?: string;
}
export default class Card extends React.PureComponent<Props, never> {
static Section: typeof Section;
static Header: typeof Header;
static childContextTypes: React.ValidationMap<any>;
private styles;
getChildContext(): {
withinContentContainer: boolean;
};
render(): JSX.Element;
}