@igloo-ui/icon-button
Advanced tools
Comparing version 0.2.7 to 0.2.8
@@ -1,2 +0,2 @@ | ||
import React from 'react'; | ||
import * as React from 'react'; | ||
import { ButtonOwnProps } from '@igloo-ui/button'; | ||
@@ -3,0 +3,0 @@ import './icon-button.scss'; |
import './icon-button.css'; | ||
import * as React from 'react'; | ||
import React__default from 'react'; | ||
@@ -217,3 +216,3 @@ /*! ***************************************************************************** | ||
}); | ||
return (React__default.createElement(Button, Object.assign({ className: classes, onClick: onClick, disabled: disabled }, rest), icon)); | ||
return (React.createElement(Button, Object.assign({ className: classes, onClick: onClick, disabled: disabled }, rest), icon)); | ||
}; | ||
@@ -220,0 +219,0 @@ |
{ | ||
"name": "@igloo-ui/icon-button", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"main": "dist/IconButton.js", | ||
@@ -24,3 +24,3 @@ "module": "dist/IconButton.js", | ||
"dependencies": { | ||
"@igloo-ui/button": "^0.2.0", | ||
"@igloo-ui/button": "^0.2.2", | ||
"@igloo-ui/tokens": "^1.1.0", | ||
@@ -37,3 +37,3 @@ "classnames": "^2.3.1" | ||
], | ||
"gitHead": "be5681b7136fabfdba22481df92ab7378cfde02f" | ||
"gitHead": "a59c6efd167e1cb3619a1e90230b1db6fc17bd9e" | ||
} |
@@ -1,19 +0,32 @@ | ||
# @igloo-ui/icon-button | ||
# IconButton | ||
Welcome to my `icon-button` component. | ||
IconButton are used primarily for actions. | ||
<Example /> | ||
<ReferenceLinks /> | ||
## Installation | ||
```sh | ||
npm i @igloo-ui/icon-button | ||
# or with yarn | ||
To install `@igloo-ui/icon-button` in your project, you will need to run the following command using [npm](https://www.npmjs.com/): | ||
```bash | ||
npm install @igloo-ui/icon-button | ||
``` | ||
If you prefer [Yarn](https://classic.yarnpkg.com/en/), use the following command instead: | ||
```bash | ||
yarn add @igloo-ui/icon-button | ||
``` | ||
## Usage | ||
Then to use the component in your code just import it! | ||
```js | ||
```jsx | ||
import IconButton from '@igloo-ui/icon-button'; | ||
// and with css-modules | ||
import '@igloo-ui/icon-button/dist/icon-button.css'; | ||
import Plus from '@igloo-ui/icons/dist/Plus'; | ||
<IconButton icon={<Plus size="small" />} />; | ||
``` |
Sorry, the diff of this file is not supported yet
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
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
36234
33
211
Updated@igloo-ui/button@^0.2.2