terra-toggle
Advanced tools
Comparing version 1.11.0 to 1.11.1
@@ -9,3 +9,3 @@ # Dependency Information | ||
| react-animate-height | ^0.9.5 | ^15.5.4 | Lightweight, no dependency React component for animating height using CSS transitions. | | ||
| terra-base | ^2.5.0 | ^15.4.2 | The base component sets minimal global styles for an application. | | ||
| terra-base | ^2.6.0 | ^15.4.2 | The base component sets minimal global styles for an application. | | ||
@@ -15,3 +15,3 @@ ## devDependencies | ||
|-|-|-|-| | ||
| terra-props-table | ^1.9.0 | ^15.4.2 | terra-props-table | | ||
| terra-props-table | ^1.10.0 | ^15.4.2 | terra-props-table | | ||
@@ -23,2 +23,2 @@ ## peerDependencies | ||
| react-dom | ^15.4.2 | ^15.6.2 | React package for working with the DOM. | | ||
| terra-base | ^2.5.0 | ^15.4.2 | The base component sets minimal global styles for an application. | | ||
| terra-base | ^2.6.0 | ^15.4.2 | The base component sets minimal global styles for an application. | |
# Terra Toggle | ||
Toggle component that transitions content in and out. | ||
Toggle component that transitions content in and out. For toggle button functionality, see [terra-toggle-button](#/site/toggle-button). | ||
@@ -14,6 +14,6 @@ ## Getting Started | ||
import React from 'react'; | ||
import Toggle from 'terra-toggle'; | ||
import Button from 'terra-button'; | ||
import Toggle from 'terra-toggle/lib/Toggle'; | ||
import IconInformation from 'terra-icon/lib/icon/IconInformation'; | ||
class MyCustomToggle extends React.Component { | ||
class ToggleDefault extends React.Component { | ||
constructor() { | ||
@@ -33,3 +33,3 @@ super(); | ||
<div> | ||
<Button onClick={this.handleOnClick}>Click Me!</Button> | ||
<IconInformation onClick={this.handleOnClick} /> | ||
<Toggle isOpen={this.state.isOpen} isAnimated> | ||
@@ -43,3 +43,4 @@ Hello World | ||
export default MyCustomToggle; | ||
export default ToggleDefault; | ||
``` | ||
@@ -46,0 +47,0 @@ |
{ | ||
"name": "terra-toggle", | ||
"main": "lib/Toggle.js", | ||
"version": "1.11.0", | ||
"version": "1.11.1", | ||
"description": "Toggle component that transitions content in and out.", | ||
@@ -24,3 +24,3 @@ "repository": { | ||
"devDependencies": { | ||
"terra-props-table": "^1.10.0" | ||
"terra-props-table": "^1.10.1" | ||
}, | ||
@@ -30,3 +30,3 @@ "peerDependencies": { | ||
"react-dom": "^15.4.2", | ||
"terra-base": "^2.6.0" | ||
"terra-base": "^2.6.1" | ||
}, | ||
@@ -37,3 +37,3 @@ "dependencies": { | ||
"react-animate-height": "^0.9.5", | ||
"terra-base": "^2.6.0" | ||
"terra-base": "^2.6.1" | ||
}, | ||
@@ -40,0 +40,0 @@ "scripts": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
21358
1
Updatedterra-base@^2.6.1