@rmwc/icon-button
Advanced tools
Comparing version 14.2.8 to 14.2.9
{ | ||
"name": "@rmwc/icon-button", | ||
"version": "14.2.8", | ||
"version": "14.2.9", | ||
"main": "./index.js", | ||
@@ -41,7 +41,7 @@ "types": "./index.d.ts", | ||
"@material/icon-button": "^14.0.0", | ||
"@rmwc/base": "14.2.8", | ||
"@rmwc/icon": "14.2.8", | ||
"@rmwc/ripple": "14.2.8", | ||
"@rmwc/types": "14.2.8" | ||
"@rmwc/base": "14.2.9", | ||
"@rmwc/icon": "14.2.9", | ||
"@rmwc/ripple": "14.2.9", | ||
"@rmwc/types": "14.2.9" | ||
} | ||
} |
@@ -43,5 +43,9 @@ # Icon Buttons | ||
<> | ||
<IconButton aria-label="favorite" icon="favorite_border" onIcon="favorite" /> | ||
<IconButton | ||
aria-label="favorite" | ||
icon="favorite_border" | ||
onIcon="favorite" | ||
/> | ||
<IconButton | ||
aria-label="favorite" | ||
icon="favorite" | ||
@@ -105,3 +109,2 @@ onIcon="favorite" | ||
## IconButton | ||
An IconButton component that can also be used as a toggle. | ||
@@ -111,11 +114,13 @@ | ||
| Name | Type | Description | | ||
| --------------- | ----------------------------------------- | --------------------------------------------------------------------------------- | | ||
| `checked` | `boolean` | Controls the on / off state of the a toggleable button. | | ||
| `disabled` | `boolean` | Makes the button disabled | | ||
| `foundationRef` | `Ref<MDCIconButtonToggleFoundation<>>` | Advanced: A reference to the MDCFoundation. Only for Toggleable buttons. | | ||
| `icon` | `IconPropT` | Icon for the button | | ||
| `label` | `string` | Apply an aria label. | | ||
| `onChange` | `(evt: IconButtonOnChangeEventT) => void` | An onChange callback that receives a custom event. evt.detail = { isOn: boolean } | | ||
| `onIcon` | `IconPropT` | If specified, renders a toggle with this icon as the on state. | | ||
| `ripple` | `RipplePropT` | Adds a ripple effect to the component | | ||
| Name | Type | Description | | ||
|------|------|-------------| | ||
| `checked` | `boolean` | Controls the on / off state of the a toggleable button. | | ||
| `disabled` | `boolean` | Makes the button disabled | | ||
| `foundationRef` | `Ref<MDCIconButtonToggleFoundation<>>` | Advanced: A reference to the MDCFoundation. Only for Toggleable buttons. | | ||
| `icon` | `IconPropT` | Icon for the button | | ||
| `label` | `string` | Apply an aria label. | | ||
| `onChange` | `(evt: IconButtonOnChangeEventT) => void` | An onChange callback that receives a custom event. evt.detail = { isOn: boolean } | | ||
| `onIcon` | `IconPropT` | If specified, renders a toggle with this icon as the on state. | | ||
| `ripple` | `RipplePropT` | Adds a ripple effect to the component | | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11218
124
10
162
1
1
+ Added@rmwc/base@14.2.9(transitive)
+ Added@rmwc/icon@14.2.9(transitive)
+ Added@rmwc/provider@14.2.9(transitive)
+ Added@rmwc/ripple@14.2.9(transitive)
+ Added@rmwc/types@14.2.9(transitive)
- Removed@rmwc/base@14.2.8(transitive)
- Removed@rmwc/icon@14.2.8(transitive)
- Removed@rmwc/provider@14.2.8(transitive)
- Removed@rmwc/ripple@14.2.8(transitive)
- Removed@rmwc/types@14.2.8(transitive)
Updated@rmwc/base@14.2.9
Updated@rmwc/icon@14.2.9
Updated@rmwc/ripple@14.2.9
Updated@rmwc/types@14.2.9