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

0.0.19 • 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

Keywords

Install

npm i @douyinfe/semi-site-header

DownloadsWeekly Downloads

170

Version

0.0.19

License

MIT

Unpacked Size

34.5 kB

Total Files

17

Last publish

Collaborators

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