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 ac041aefaa Initial commit пре 3 година
src Initial commit пре 3 година
.editorconfig Initial commit пре 3 година
.gitignore Initial commit пре 3 година
LICENSE Initial commit пре 3 година
README.md Initial commit пре 3 година
package.json Initial commit пре 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.