npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@pamfilico/issuebeam-material

v0.1.5

Published

Material UI components for IssueBeam feedback widget integration

Readme

@pamfilico/issuebeam-material

Material UI components for integrating the IssueBeam feedback widget into React applications.

Installation

npm install @pamfilico/issuebeam-material
# or
yarn add @pamfilico/issuebeam-material
# or
pnpm add @pamfilico/issuebeam-material

Peer Dependencies

This package requires the following peer dependencies:

  • React (16.8.0 or higher)
  • Material UI v5 or v6
  • @emotion/react
  • @emotion/styled

Usage

Basic Usage

import { FeedbackButton } from '@pamfilico/issuebeam-material';

function App() {
  return (
    <div>
      <h1>My Application</h1>
      <FeedbackButton appId="YOUR_APP_ID" />
    </div>
  );
}

Custom Position and Styling

import { FeedbackButton } from '@pamfilico/issuebeam-material';

function App() {
  return (
    <FeedbackButton 
      appId="YOUR_APP_ID"
      position="bottom-left"
      primaryColor="#4CAF50"
      userEmail="[email protected]"
      apiUrl="https://api.yourdomain.com"
    />
  );
}

Embedded in Container (Parent Positioning)

Perfect for integrating the feedback button into navigation bars or specific UI areas:

import { useRef } from 'react';
import { FeedbackButton } from '@pamfilico/issuebeam-material';
import { Box, BottomNavigation, BottomNavigationAction } from '@mui/material';
import { Home, Settings, Person } from '@mui/icons-material';

function NavigationWithFeedback() {
  const feedbackContainerRef = useRef<HTMLDivElement>(null);
  
  return (
    <Box sx={{ position: 'fixed', bottom: 0, left: 0, right: 0 }}>
      <Box sx={{ display: 'flex', alignItems: 'center' }}>
        <BottomNavigation sx={{ flex: 1 }}>
          <BottomNavigationAction label="Home" icon={<Home />} />
          <BottomNavigationAction label="Settings" icon={<Settings />} />
          <BottomNavigationAction label="Profile" icon={<Person />} />
        </BottomNavigation>
        
        {/* Feedback button container */}
        <Box
          ref={feedbackContainerRef}
          id="feedback-nav-container"
          sx={{
            position: "relative",
            width: 80,
            height: 56,
            display: "flex",
            alignItems: "center",
            justifyContent: "center",
            borderLeft: '1px solid',
            borderColor: 'divider',
          }}
        >
          <FeedbackButton
            appId="YOUR_APP_ID"
            position="parent"
            containerRef={feedbackContainerRef}
            primaryColor="#667eea"
          />
        </Box>
      </Box>
    </Box>
  );
}

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | appId | string | Required | Your IssueBeam application ID | | position | string | "bottom-right" | Button position: "bottom-right", "bottom-left", "top-right", "top-left", "left-middle", "right-middle", "parent" | | primaryColor | string | "#667eea" | Primary color for the feedback button | | apiUrl | string | "https://api.issuebeam.com" | API endpoint URL | | userEmail | string | "" | User's email for identification | | domain | string | Current hostname | Domain name for tracking | | containerRef | React.RefObject<HTMLElement> | undefined | Reference to container element (required for position="parent") | | demoMode | boolean | false | Enable demo mode (prevents API calls) | | scriptSrc | string | "https://issuebeam.com/js/feedback.js" | URL to the feedback widget script |

Position Options

Fixed Positions

  • bottom-right: Default position, fixed at bottom-right corner
  • bottom-left: Fixed at bottom-left corner
  • top-right: Fixed at top-right corner
  • top-left: Fixed at top-left corner
  • left-middle: Fixed at left side, vertically centered
  • right-middle: Fixed at right side, vertically centered

Parent Position

  • parent: Renders inside a container element. Requires containerRef prop.

TypeScript Support

This package includes TypeScript definitions. The main types are:

interface FeedbackButtonProps {
  appId: string;
  userEmail?: string;
  position?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | "left-middle" | "right-middle" | "parent";
  apiUrl?: string;
  primaryColor?: string;
  domain?: string;
  containerRef?: React.RefObject<HTMLElement>;
  demoMode?: boolean;
  scriptSrc?: string;
}

Material UI Integration

This component is designed to work seamlessly with Material UI applications. It:

  • Follows Material Design principles
  • Works with Material UI themes
  • Can be embedded in Material UI components
  • Supports all Material UI breakpoints

Demo Mode

Enable demo mode for testing without making actual API calls:

<FeedbackButton
  appId="demo-app"
  demoMode={true}
/>

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)
  • Mobile browsers (iOS Safari, Chrome Mobile)

License

MIT

Links