@graffft-waggle/kopf
TypeScript icon, indicating that this package has built-in type declarations

0.0.4-alpha.15 • Public • Published

filename: /packages/organisms/Kopf.tsx

Kopf API

The API documentation of the Kopf Graffft Waggle component.

Import

import { Kopf } from '@graffft-waggle/kopf';

Kopf

Required Props

interface KopfHeaderNavItem {
  key: string;
  navItem: string | number | JSX.Element;
  navItemColor: string;
  navItemBgHoverColor: string;
}
Name Type Description
headerLogo string|number|JSX.Element Main header logo
headerNavItems KopfHeaderNavItem[] Nav items in header
export enum KopfHeaderLogoPostion {
  LEFT = 'left',
  RIGHT = 'right',
}

Optional Props

Name Type Default Description
isFixed boolean true if true, header is fixed to the top
headerMaxWidth string 1800px max width for header
sideNavDisabled boolean false Logo needed to enable sidenav
sideNavLogo string|number|JSX.Element undefined Logo needed to enable sidenav
desktopMinWidth number 768 Min-width for non-mobile devices
headerBackgroundColor string #fff Header background color
headerBoxShadow string '0 1px 2px 0 rgba(60,64,67,0.3), 0 2px 6px 2px rgba(60,64,67,0.15)' Header box shadow
headerBurgerColor string #000 Header burger color
headerHeight string 60px Header height
headerLogoPosition KopfHeaderLogoPostion left Header logo position
headerNavItemHorizontalPadding string 0px 16px Padding around each nav item
headerMobilePadding string 0px 16px Header mobile padding
headerPadding string 0px 24px Header padding
headerZIndex number 200 Header z-index
mobileMenuOpen boolean false mobile menu open state
handleToggleMobileMenu () => void () => {} callback for toggling mobile menu
handleCloseMobileMenu () => void () => {} callback for closing mobile menu
customScss string '' custom scss for wrapper element

Demos

  • TODO

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.4-alpha.154latest
0.0.4-alpha.01next

Version History

VersionDownloads (Last 7 Days)Published
0.0.4-alpha.154
0.0.4-alpha.143
0.0.4-alpha.133
0.0.4-alpha.122
0.0.4-alpha.112
0.0.4-alpha.102
0.0.4-alpha.93
0.0.4-alpha.82
0.0.4-alpha.72
0.0.4-alpha.62
0.0.4-alpha.52
0.0.4-alpha.42
0.0.4-alpha.32
0.0.4-alpha.22
0.0.4-alpha.12
0.0.4-alpha.01
0.0.3-alpha.01

Package Sidebar

Install

npm i @graffft-waggle/kopf

Weekly Downloads

37

Version

0.0.4-alpha.15

License

MIT

Unpacked Size

76.4 kB

Total Files

10

Last publish

Collaborators

  • dankreiger