Socket
Socket
Sign inDemoInstall

@rmwc/icon-button

Package Overview
Dependencies
Maintainers
1
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rmwc/icon-button - npm Package Compare versions

Comparing version 14.2.8 to 14.2.9

index.d.ts

10

package.json
{
"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 |
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