ink-spinner
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "ink-spinner", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Spinner component for Ink", | ||
@@ -50,6 +50,10 @@ "license": "MIT", | ||
"ink": "^2.0.0", | ||
"ink-testing-library": "^1.0.0", | ||
"react": "^16.8.2", | ||
"sinon": "^2.3.6", | ||
"xo": "*" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.8.2", | ||
"ink": "^2.0.0" | ||
}, | ||
"babel": { | ||
@@ -56,0 +60,0 @@ "plugins": [ |
@@ -16,11 +16,12 @@ # ink-spinner [![Build Status](https://travis-ci.org/vadimdemedes/ink-spinner.svg?branch=master)](https://travis-ci.org/vadimdemedes/ink-spinner) | ||
```js | ||
import React from 'react'; | ||
import React, {Fragment} from 'react'; | ||
import {render, Color} from 'ink'; | ||
import Spinner from 'ink-spinner'; | ||
render(( | ||
<Color green> | ||
<Spinner green/>{' '}Loading | ||
</Color> | ||
)); | ||
render( | ||
<Fragment> | ||
<Color green><Spinner type="dots"/></Color> | ||
{' Loading'} | ||
</Fragment> | ||
); | ||
``` | ||
@@ -27,0 +28,0 @@ |
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
5544
44
4