boundless-button
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "boundless-button", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A control with \"pressed\" state support.", | ||
@@ -27,6 +27,6 @@ "main": "build/index.js", | ||
}, | ||
"homepage": "http://boundless.js.org/#/Button", | ||
"homepage": "http://boundless.js.org/Button", | ||
"dependencies": { | ||
"classnames": "^2.1.5", | ||
"boundless-utils-omit-keys": "^1.0.2" | ||
"boundless-utils-omit-keys": "^1.0.3" | ||
}, | ||
@@ -33,0 +33,0 @@ "peerDependencies": { |
<!--- | ||
THIS IS AN AUTOGENERATED FILE. EDIT INDEX.JS INSTEAD. | ||
THIS IS AN AUTOGENERATED FILE. EDIT PACKAGES/BOUNDLESS-BUTTON/INDEX.JS INSTEAD. | ||
--> | ||
@@ -30,6 +30,14 @@ # Button | ||
## Example Usage | ||
## Installation | ||
```bash | ||
npm i boundless-button --save | ||
``` | ||
Then use it like: | ||
```jsx | ||
import React from 'react'; | ||
import Button from '../index'; | ||
import Button from 'boundless-button'; | ||
@@ -77,9 +85,23 @@ export default class ButtonDemo extends React.PureComponent { | ||
} | ||
``` | ||
Button can also just be directly used from the main [Boundless library](https://www.npmjs.com/package/boundless). This is recommended when you're getting started to avoid maintaining the package versions of several components: | ||
```bash | ||
npm i boundless --save | ||
``` | ||
the ES6 `import` statement then becomes like: | ||
```js | ||
import { Button } from 'boundless'; | ||
``` | ||
## Props | ||
> Note: only top-level props are in the README, for the full list check out the [website](http://boundless.js.org/#/Button). | ||
> Note: only top-level props are in the README, for the full list check out the [website](http://boundless.js.org/Button). | ||
@@ -86,0 +108,0 @@ ### Required Props |
Sorry, the diff of this file is not supported yet
52784
162