Layout scaffolding for Web apps.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
TheoryOfNekomata b03bc80f7f Specify email 3 年之前
src Initial commit 3 年之前
.editorconfig Initial commit 3 年之前
.gitignore Initial commit 3 年之前
LICENSE Initial commit 3 年之前
README.md Initial commit 3 年之前
package.json Specify email 3 年之前
tsconfig.json Initial commit 3 年之前
yarn.lock Initial commit 3 年之前

README.md

Viewfinder

Layout scaffolding for Web apps.

Usage

Just import:

import * as React from 'react'
import { Basic, LeftSidebar, LeftSidebarWithMenu, RightSidebarStatic } from '@tesseract-design/viewfinder'

const Page: React.FC = ({
	avatar,
	fullName,
}) => (
	<Basic.Layout
		brand={
		  <a href="/">
				<img
					src="logo.svg"
					alt="ACME Inc."
				/>
		  </a>
		}
		topBarCenter={
			<form>
				<input
					type="search"
					name="q"
				/>
			</form>
		}
		userLink={
			<a href="/profile">
				<img
					src={avatar}
					alt={fullName}
				/>
			</a>
		}
	>
		<Basic.ContentContainer>
			Hello world!
		</Basic.ContentContainer>
	</Basic.Layout>
)

export default Page

The available props per layout is included as a TypeScript declarations file.