toggle

v1.0.0arrow_drop_down
v1.0.0
STATUS
Passing
DOWNLOADS
4
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
N/A
Turns on the toggle
Install toggle as a package?
Copied
npm i @bit/autodesk-tool-evals.hig-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
modifieddraft
chevron_left
chevron_right

Turns on the toggle

Initially checks the checkbox, but allows user action to change it

Called when user changes the value of the field

Called when user releases a keyboard key

Render prop

Returns whether or not the toggle is currently focused

Returns whether or not the toggle is currently hovered

Returns whether or not the toggle is currently pressed

Intially turns the toggle on, but allows user action to change it

Turns on the toggle

Adds custom/overriding styles

Properties
NameType
on
boolean
Help and resources