@apptane/react-ui-layout
Version:
layout component in Apptane React UI framework
33 lines (32 loc) • 882 B
TypeScript
/// <reference types="react" />
import PropTypes from "prop-types";
export declare type MediaAlignment = "top" | "center" | "overhang";
export interface MediaObjectProps {
/**
* Main content.
*/
children?: React.ReactNode;
/**
* Header slot.
*/
header?: React.ReactNode;
/**
* Media slot.
*/
media?: React.ReactNode;
/**
* Media alignment relative to the content. Defaults to `overhang`.
*/
alignment?: MediaAlignment;
/**
* Spacing in pixels between media and content.
*/
spacing?: number;
}
export declare const MediaObjectPropTypes: {
children: PropTypes.Requireable<any>;
header: PropTypes.Requireable<any>;
media: PropTypes.Requireable<any>;
alignment: PropTypes.Requireable<MediaAlignment>;
spacing: PropTypes.Requireable<number>;
};