Skip to content

hanai/rax-page-layout

Repository files navigation

rax-page-layout

Classic page layout for rax application.

web_qr_code
web

Install

$ npm install rax-page-layout --save

Usage

import { PageLayout, PageHeader, PageFooter, PageMain } from 'rax-page-layout';

Components

PageLayout

Layout view for a page.

Props

name type default required describe support
children RaxNode - false PageMain | PageHeader | PageFooter browser

PageMain

Main content container for a page.

Props

name type default required describe support
children RaxNode - false children element browser
hasPullToRefresh boolean false false if has pull to refresh browser
isRefreshing boolean false false refresh state browser
betterScroll boolean false false if use better-scroll browser

PageHeader/PageFooter

Example

import { createElement, render } from 'rax';
import DriverUniversal from 'driver-universal';
import { PageLayout, PageHeader, PageFooter, PageMain } from 'rax-page-layout';

render(<PageLayout />, document.body, { driver: DriverUniversal });

License

MIT