Socket
Book a DemoInstallSign in
Socket

@actav/floating-icon-navigation

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@actav/floating-icon-navigation

(Name should be changed...I think...)

Source
npmnpm
Version
0.0.6
Version published
Weekly downloads
53
82.76%
Maintainers
1
Weekly downloads
 
Created
Source

Floating-icon-navigation

(Name should be changed...I think...)

Ex)

Screen Recording 2023-07-15 at 1 21 05 AM

Installation

yarn add @actav/floating-icon-navigation

or

npm install @actav/floating-icon-navigation

Usage

Provider

Wrap your App with Fin Provider

// ... some imports
import { FinProvider } from '@actav/floating-icon-navigation';

ReactDOM.createRoot(document.getElementById('root')!).render(
  <React.StrictMode>
    <FinProvider>
      <App />
    </FinProvider>
  </React.StrictMode>,
);

Components

Fins, Fin: Content Generator

// ... some imports
import { Fins, Fin } from '@actav/floating-icon-navigation';

function Generator() {
  // There should be at least one Fin component with index
  return (
    <Fins>
      <Fin index path='main' activeColor='#4263EB' icon={<AiFillHome />}>
        Home
      </Fin>
      <Fin path='git' icon={<AiFillGithub />}>
        Visit{' '}
        <a href='https://github.com/ActaV-N/floating-icon-navigation' target='_blank' rel='noopener'>
          repository
        </a>
      </Fin>
      <Fin path='info' activeColor='#40C057' icon={<AiFillExclamationCircle />}>
        This package is created by Lee
      </Fin>
    </Fins>
  );
}

export default Generator;

Abovce code will make this:

Screenshot 2023-07-15 at 1 18 34 AM

FinReceiver: Content Receiver

// ... some imports
import { FinReceiver } from '@actav/floating-icon-navigation';

function Receiver() {
  return (
    <div>
      <FinReceiver />
      <Generator />
    </div>
  );
}

export default Receiver;

If you add receiver, result will be like this:

Screenshot 2023-07-15 at 1 18 39 AM

FAQs

Package last updated on 14 Jul 2023

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