Layout scaffolding for Web apps.
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
TheoryOfNekomata ac041aefaa Initial commit 3 lat temu
src Initial commit 3 lat temu
.editorconfig Initial commit 3 lat temu
.gitignore Initial commit 3 lat temu
LICENSE Initial commit 3 lat temu
README.md Initial commit 3 lat temu
package.json Initial commit 3 lat temu
tsconfig.json Initial commit 3 lat temu
yarn.lock Initial commit 3 lat temu

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.