UNPKG

@wordpress/components

Version:
31 lines (28 loc) 694 B
import { createElement } from "@wordpress/element"; /** * Internal dependencies */ import { VStack } from '../v-stack'; import { View } from '../view'; import { Heading } from '../../heading'; import { Divider } from '../divider'; function Page({ title = 'Component', children }) { return createElement("div", { style: { paddingTop: 24, paddingBottom: '20vh', maxWidth: '1280px', marginLeft: 'auto', marginRight: 'auto' } }, createElement(VStack, { spacing: 6 }, createElement(Heading, { size: 1 }, title), createElement(Divider, null), createElement(View, null, children))); } export default Page; //# sourceMappingURL=page.js.map