@douyinfe/semi-site-header
TypeScript icon, indicating that this package has built-in type declarations

0.0.29 • Public • Published

Semi site header

header used in Semi Design

💡 Usage

install

npm install @douyinfe/semi-site-header

import

import Header '@douyinfe/semi-site-header';

ReactDOM.render(<Header />, root);

📍 Props

Property Description Type Default
className class name string
style custom style CSSProperties
locale locale code string
preferColor follow system dark theme boolean
logo logo content ReactNode
ghLink github link string "https://github.com/DouyinFE/semi-design"
onLogoClick logo click event () => void
onDarkChange dark change event (mode: string) => void
onThemeChange theme change event (color: string) => void
onLocaleChange locale change event (locale: string) => void

Readme

Keywords

Package Sidebar

Install

npm i @douyinfe/semi-site-header

Weekly Downloads

155

Version

0.0.29

License

MIT

Unpacked Size

42.1 kB

Total Files

29

Last publish

Collaborators

  • yannlynn
  • yumeizhang
  • xyqnpm
  • chenyuling_99
  • point.halo
  • zwlafk
  • daiqiangreal
  • shijiatongxue
  • bytednpm
  • wuhw