toggle

v1.0.1arrow_drop_down
v1.0.1
v1.0.0
STATUS
Passing
DOWNLOADS
15
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
6 years ago
SIZE
N/A
Verifies that the children is an array containing only two choices with a different value.
1 contributor
Install toggle as a package?
Copied
npm i @bit/tomlandau.belle.components.toggle
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
chevron_left
chevron_right

Verifies that the children is an array containing only two choices with a different value.

Update focus style for the speficied styleId.

Toggle component

Generates the style-id & inject the focus style.

Deactivate the focused attribute in order to make sure the focus animation only runs once when the component is focused on & not after re-rendering e.g when the user clicks on the toggle.

Remove a component’s associated styles whenever it gets removed from the DOM.

Activate the focused attribute used to determine when to show the one-time focus animation and trigger a render.

Deactivate the focused attribute used to determine when to show the one-time focus animation and trigger a render.

Flip value in case it is false.

Flip value in case it is true.

Flip value and trigger change.

Help and resources