UNPKG

591 BTypeScriptView Raw
1import { FunctionComponent } from 'react';
2import { SourceProps } from './Source';
3import { ActionItem } from '../ActionBar/ActionBar';
4export interface PreviewProps {
5 isColumn?: boolean;
6 columns?: number;
7 withSource?: SourceProps;
8 isExpanded?: boolean;
9 withToolbar?: boolean;
10 className?: string;
11 additionalActions?: ActionItem[];
12}
13/**
14 * A preview component for showing one or more component `Story`
15 * items. The preview also shows the source for the component
16 * as a drop-down.
17 */
18declare const Preview: FunctionComponent<PreviewProps>;
19export { Preview };