This package has been deprecated

Author message:

This package is no loger supported. We recommend using @govtechsg/sgds-web-component instead.

@govtechsg/sgds-masthead-react
TypeScript icon, indicating that this package has built-in type declarations

0.0.11 • Public • Published

Getting Started

Install the sgds-masthead-react package

npm i @govtechsg/sgds-masthead-react

in your App.tsx

import '@govtechsg/sgds-masthead/dist/sgds-masthead/sgds-masthead.css';
import { SgdsMasthead } from '@govtechsg/sgds-masthead-react';

In your render function

render(){
 return(
  <SgdsMasthead></SgdsMasthead>
  .
  .
  .

Note: If you are using CRA4 and below

You might encounter compilation warning

Module parse failed: Unexpected token.
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.
>> var patchBrowser=function(){var r=import.meta.url;

To resolve this, you will need to use an addtional loader. @open-wc/webpack-import-meta-loader

Readme

Keywords

none

Package Sidebar

Install

npm i @govtechsg/sgds-masthead-react

Weekly Downloads

707

Version

0.0.11

License

ISC

Unpacked Size

26.6 kB

Total Files

24

Last publish

Collaborators

  • kenneth_leong_gt
  • govtechsg_a11y
  • younglim
  • gtrgchua
  • isomer.govtech
  • gyunikuchan
  • gds_ace_dlt
  • gdsbot
  • gylsky
  • ryanoolala
  • dyihoon90