Socket
Book a DemoInstallSign in
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
Package was removed
Sorry, it seems this package was removed from the registry

audio-player-normal

Shared header component for multiple Next.js projects

unpublished
latest
npmnpm
Version
1.0.2
Version published
Maintainers
0
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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.