Layout scaffolding for Web apps.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
TheoryOfNekomata ac041aefaa Initial commit pirms 3 gadiem
src Initial commit pirms 3 gadiem
.editorconfig Initial commit pirms 3 gadiem
.gitignore Initial commit pirms 3 gadiem
LICENSE Initial commit pirms 3 gadiem
README.md Initial commit pirms 3 gadiem
package.json Initial commit pirms 3 gadiem
tsconfig.json Initial commit pirms 3 gadiem
yarn.lock Initial commit pirms 3 gadiem

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.