@justeattakeaway/pie-button
Advanced tools
Comparing version 0.36.0 to 0.36.1
{ | ||
"name": "@justeattakeaway/pie-button", | ||
"version": "0.36.0", | ||
"version": "0.36.1", | ||
"description": "PIE design system button built using web components", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -50,17 +50,25 @@ <p align="center"> | ||
#### JavaScript | ||
```js | ||
// Default – for Native JS Applications, Vue, Angular, Svelte etc. | ||
// Default – for Native JS Applications, Vue, Angular, Svelte, etc. | ||
import { PieButton } from '@justeattakeaway/pie-button'; | ||
// 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-button'; | ||
``` | ||
#### React | ||
```js | ||
// React | ||
// For React, you will need to import our React specific component build | ||
// Which wraps the web component using the @lit-labs/react package | ||
// Note: When using the React version of the component, please make sure | ||
// you also include React as a dependency in your project as well. See Peer Dependencies section. | ||
// For React, you will need to import our React-specific component build | ||
// which wraps the web component using @lit-labs/react | ||
import { PieButton } from '@justeattakeaway/pie-button/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 | ||
@@ -67,0 +75,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
86827
205