Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

audio-player-normal

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

audio-player-normal

Shared header component for multiple Next.js projects

  • 1.0.0
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-97.28%
Maintainers
0
Weekly downloads
 
Created
Source

Shared Header Component

A reusable header component built with TypeScript and React, designed for use across multiple Next.js projects.

Installation

To install this package, run:

npm install hungnc-shared-header
# or
yarn add hungnc-shared-header

Usage

Import the component in your project and use it as follows:

import { Header } from 'hungnc-shared-header';

const App = () => {
  return (
    <div>
      <Header
        title="Welcome to My Site"
        subtitle="Making things easy"
        backgroundColor="#0070f3"
      />
    </div>
  );
};

export default App;

Props

  • title (string): The main title text displayed in the header.
  • subtitle (string, optional): The subtitle text displayed below the title.
  • backgroundColor (string, optional): The background color of the header. Defaults to #333.

Development

5. Build the Package

To compile TypeScript files to JavaScript in the dist folder, run:

npm run build

6. Publish to NPM

Login to NPM (if not already done):
npm login
Publish the package:
npm publish --access public

License

MIT License

FAQs

Package last updated on 13 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc