TheoryOfNekomata ac041aefaa | il y a 3 ans | |
---|---|---|
src | il y a 3 ans | |
.editorconfig | il y a 3 ans | |
.gitignore | il y a 3 ans | |
LICENSE | il y a 3 ans | |
README.md | il y a 3 ans | |
package.json | il y a 3 ans | |
tsconfig.json | il y a 3 ans | |
yarn.lock | il y a 3 ans |
Layout scaffolding for Web apps.
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.