🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@freshworks/toggle

Package Overview
Dependencies
Maintainers
15
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@freshworks/toggle

Toggle component in Nucleus

latest
Source
npmnpm
Version
0.16.1
Version published
Weekly downloads
308
-59.79%
Maintainers
15
Weekly downloads
 
Created
Source

@freshworks/toggle

npm version npm

yarn add @freshworks/toggle

Toggles in Freshdesk

Interactive component that allows to toggle between two choices, checked and unchecked. They are mostly used to represent active/inactive state.

Accessibility

When the toggle has focus, pressing the Space key changes the state of the toggle.

Variants

Disabled - Prevent hover states from activating

Guidelines

DO’s

  • Use toggles with labels unless the title is straightforward so the user knows exactly what action he is doing.
  • In case of multiple toggles, align them well so that it is easier to find them on the page.

DONT’s

  • Do not redirect the user to a different page on change of the toggle state.
  • Avoid using multiple toggles on the same page, as much as possible.
  • Toggle actions work immediately. Do not enable them only after a clicking confirm button.

Keywords

ember-addon

FAQs

Package last updated on 20 Sep 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