@mochi-ui/icon-button
Advanced tools
Comparing version
import { IconButtonStylesProps } from '@mochi-ui/theme'; | ||
import * as Polymorphic from '@mochi-ui/polymorphic'; | ||
type IconButtonProps = IconButtonStylesProps; | ||
type IconButtonProps = IconButtonStylesProps & { | ||
label: string; | ||
}; | ||
type PolymorphicIconButton = Polymorphic.ForwardRefComponent<'button', IconButtonProps>; | ||
@@ -6,0 +8,0 @@ declare const IconButton: PolymorphicIconButton; |
@@ -49,2 +49,3 @@ "use strict"; | ||
className, | ||
label, | ||
...rest | ||
@@ -58,2 +59,3 @@ }, ref) => { | ||
disabled, | ||
"aria-label": label, | ||
...rest, | ||
@@ -60,0 +62,0 @@ children |
@@ -51,2 +51,3 @@ "use strict"; | ||
className, | ||
label, | ||
...rest | ||
@@ -60,2 +61,3 @@ }, ref) => { | ||
disabled, | ||
"aria-label": label, | ||
...rest, | ||
@@ -62,0 +64,0 @@ children |
{ | ||
"name": "@mochi-ui/icon-button", | ||
"version": "0.4.8", | ||
"version": "0.4.9", | ||
"sideEffects": false, | ||
@@ -19,5 +19,5 @@ "main": "dist/index.js", | ||
"class-variance-authority": "^0.7.0", | ||
"@mochi-ui/icons": "0.5.0", | ||
"@mochi-ui/icons": "0.6.0", | ||
"@mochi-ui/polymorphic": "0.0.3", | ||
"@mochi-ui/theme": "0.10.0" | ||
"@mochi-ui/theme": "0.11.0" | ||
}, | ||
@@ -24,0 +24,0 @@ "clean-package": "../../../clean-package.config.json", |
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
9333
1.86%190
4.4%+ Added
+ Added
- Removed
- Removed
Updated
Updated