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

![npm](https://img.shields.io/npm/v/%40actav%2Ffloating-icon-navigation) ![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/actav-n/floating-icon-navigation/publish.yml) ![GitHub Release Date - Published_At](https

Source
npmnpm
Version
1.0.10
Version published
Maintainers
1
Created
Source

Floating-icon-navigation

npm GitHub Workflow Status (with event) GitHub Release Date - Published_At NPM

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

Live Demo

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 31 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