Socket
Socket
Sign inDemoInstall

@material/switch

Package Overview
Dependencies
Maintainers
9
Versions
1687
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material/switch - npm Package Compare versions

Comparing version 0.1.15 to 0.24.0

_functions.scss

4

package.json
{
"name": "@material/switch",
"description": "The Material Components for the web switch component",
"version": "0.1.15",
"version": "0.24.0",
"license": "Apache-2.0",

@@ -18,3 +18,3 @@ "keywords": [

"@material/elevation": "^0.1.13",
"@material/theme": "^0.4.0"
"@material/theme": "^0.24.0"
},

@@ -21,0 +21,0 @@ "publishConfig": {

@@ -62,14 +62,25 @@ <!--docs:

## Classes
### Classes
### Block
#### Block
The block class is `mdc-switch`. This defines the top-level switch element.
### Modifier
#### Modifier
The provided modifiers are:
| Class | Description |
| ----------------------| -------------------------------------------- |
| `mdc-switch--disabled` | Applies disabled style to disabled switches. |
| Class | Description |
| -----------------------| -------------------------------------------- |
| `mdc-switch--disabled` | Applies disabled style to disabled switches. |
### Sass Mixins
The following mixins apply only to _enabled_ switches in the _on_ (checked) state.
It is not currently possible to customize the color of a _disabled_ or _off_ (unchecked) switch.
Mixin | Description
--- | ---
`mdc-switch-track-color($color)` | Sets the track color
`mdc-switch-knob-color($color)` | Sets the knob color
`mdc-switch-focus-indicator-color($color)` | Sets the focus indicator color

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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