@justeattakeaway/pie-spinner
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "@justeattakeaway/pie-spinner", | ||
"description": "PIE Design System Spinner built using Web Components", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
@@ -44,11 +44,25 @@ <p align="center"> | ||
#### JavaScript | ||
```js | ||
// default | ||
// Default – for Native JS Applications, Vue, Angular, Svelte, etc. | ||
import { PieSpinner } from '@justeattakeaway/pie-spinner'; | ||
// react | ||
// If you don't need to reference the imported object, you can simply | ||
// import the module which registers the component as a custom element. | ||
import '@justeattakeaway/pie-spinner'; | ||
``` | ||
#### React | ||
```js | ||
// React | ||
// For React, you will need to import our React-specific component build | ||
// which wraps the web component using @lit-labs/react | ||
import { PieSpinner } from '@justeattakeaway/pie-spinner/dist/react'; | ||
``` | ||
> [!NOTE] | ||
> When using the React version of the component, please make sure to also | ||
> include React as a [peer dependency](#peer-dependencies) in your project. | ||
## Peer Dependencies | ||
@@ -55,0 +69,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
17143
93
0