TheoryOfNekomata c385f6f424 | пре 3 година | |
---|---|---|
src | пре 3 година | |
.editorconfig | пре 3 година | |
.gitignore | пре 3 година | |
LICENSE | пре 3 година | |
README.md | пре 3 година | |
package.json | пре 3 година | |
tsconfig.json | пре 3 година | |
yarn.lock | пре 3 година |
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.