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

@red-hat-developer-hub/backstage-plugin-global-floating-action-button

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@red-hat-developer-hub/backstage-plugin-global-floating-action-button

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
104
Maintainers
0
Weekly downloads
 
Created
Source

Global floating action button for Backstage

This plugin enables you to add a floating button, with or without submenu options, to your desired pages.

Getting started

This plugin has been added to the example app in this workspace, meaning it can be accessed by running yarn start from this directory, and then navigating to /test-global-floating-action.

For administrators

Installation

Procedure
  1. Install the Global floating action button plugin using the following command:

    yarn workspace app add @red-hat-developer-hub/backstage-plugin-global-floating-action-button
    
  2. Add Bulk import Sidebar Item in packages/app/src/components/Root/Root.tsx:

    /* highlight-add-next-line */
    import {
      GlobalFloatingButton,
      Slot,
    } from '@red-hat-developer-hub/backstage-plugin-global-floating-action-button';
    
    export const Root = ({ children }: PropsWithChildren<{}>) => (
      <SidebarPage>
        ... /* highlight-add-start */
        <GlobalFloatingButton
          floatingButtons={[
            {
              color: 'success',
              icon: <CreateComponentIcon />,
              label: 'Create',
              toolTip: 'Create entity',
              to: '/create',
            },
            {
              slot: Slot.BOTTOM_CENTER,
              icon: <LibraryBooks />,
              label: 'Docs',
              toolTip: 'Docs',
              to: '/docs',
            },
          ]}
        />
        /* highlight-add-end */ ...
      </SidebarPage>
    );
    

Keywords

FAQs

Package last updated on 06 Jan 2025

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