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

@eduzz/apps-toolbar-react

Package Overview
Dependencies
Maintainers
9
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eduzz/apps-toolbar-react

[![version](https://img.shields.io/npm/v/@eduzz/apps-toolbar-react)](https://www.npmjs.com/package/@eduzz/apps-toolbar-react)

  • 1.1.32
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-94.29%
Maintainers
9
Weekly downloads
 
Created
Source

Eduzz Toolbar React

version

Instalação
$ yarn add @eduzz/apps-toolbar-react

Adicione a fonte padrão no seu HTML (se não houver).

<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600&display=swap" rel="stylesheet">
Implementação
const { Action, Apps, User, UserMenuItem, UserMenuDivider, UserMenuContext } = EduzzToolbar;

<EduzzToolbar {...params}>
  // ações customizadas 
  <Action icon={...} onClick={...} />
  <Action icon={...} onClick={...} />

  // apps padrão
  <Apps />

  // usuário atual/ações do usuário
  <User>
    <UserMenuItem icon={...} disabled>Minhas compras</UserMenuItem>
    <UserMenuItem icon={...}>Dados Bancários</UserMenuItem>
    <UserMenuItem icon={...}>Dashboard Elite</UserMenuItem>

    <UserMenuDivider />

    <UserMenuContext>Contas:</UserMenuContext>
    <UserMenuItem icon={...}>John Doe</UserMenuItem>
    <UserMenuItem icon={...} disabled>John Doe 2</UserMenuItem>

    <UserMenuDivider />

    <UserMenuItem>Sair</UserMenuItem>
  </User>
</EduzzToolbar>
Props

Toolbar props.

interface IEduzzToolbarSetupParams {
  application?: typeEduzzToolbarApplications;
  user?: IEduzzToolbarUser;
  disableChat?: boolean;
}

Toolbar.Action props.

interface IEduzzToolbarAction {
  active?: boolean;
  icon?: React.ReactNode;
  label?: React.ReactNode;
  onClick?: (element?: React.MouseEvent<HTMLDivElement>) => void;
}

Toolbar.UserMenuItem props.

interface IEduzzToolbarUserMenuItem {
  icon?: React.ReactNode;
  onClick?: (user: IEduzzToolbarUser, e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
  disabled?: boolean;
}

FAQs

Package last updated on 14 Jul 2022

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