toggle
v1.0.0arrow_drop_downv1.0.0
STATUS
Passing
DOWNLOADS
4
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
N/A
Turns on the toggle
Like
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
and packages in Bit or NPM to the example. any of the 1 million componentstoggle 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
Name | Type |
---|---|
on | boolean |