UNPKG

@apptane/react-ui-layout

Version:
33 lines (32 loc) 882 B
/// <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>; };