UNPKG

apphouse

Version:

Component library for React that uses observable state management and theme-able components.

35 lines (34 loc) 1.09 kB
import React from 'react'; import { CSSProperties } from 'glamor'; import { LayoutStyles } from '../../styles/defaults/themes.interface'; import { ApphouseComponent } from '../component.interfaces'; import { ViewProps } from '../cross-platform/Views/View'; export interface PageStyles { container?: CSSProperties; } export interface PageProps extends Omit<ViewProps, 'styleOverwrites' | 'gutters'>, ApphouseComponent<PageStyles> { /** * The orientation of the view * @default "horizontal" * @optional */ orientation?: keyof LayoutStyles; /** * The children to render */ children?: React.ReactNode; /** * If true, the view will set alignItems: "center" when * orientation is "vertical" and justifyContent: "center" when * orientation is "horizontal" * @optional * @default false */ centerAlign?: boolean; } /** * A component that renders a page * It is a wrapper around the View component except it scrolls to the top of the page * when it is rendered */ export declare const Page: React.FC<PageProps>;