Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hero-slider

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hero-slider - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

1

dist/Slider/typings.d.ts

@@ -71,3 +71,2 @@ /// <reference types="react" />

style?: React.CSSProperties;
shouldDisplayChange: boolean;
autoplay: React.MutableRefObject<IntervalTimer>;

@@ -74,0 +73,0 @@ setIsManuallyPaused: React.Dispatch<React.SetStateAction<boolean>>;

2

package.json
{
"name": "hero-slider",
"version": "1.1.0",
"version": "1.1.1",
"description": "",

@@ -5,0 +5,0 @@ "author": "rmolinamir",

@@ -46,3 +46,4 @@ # hero-slider

MenuNav,
ButtonsNav
ButtonsNav,
AutoplayButton
} from 'hero-slider'

@@ -266,4 +267,18 @@ ```

## AutoplayButton
The AutoplayButton component comes in handy whenever the hero slider is set up to autoplay. This button will play or pause the autoplay instance respectively upon clicking it. It's really easy to setup. The button is an SVG image, which means it will scale well to any width or height. **The button has to be in the first level of the HeroSlider childrens, just like a Slide component would be. If you want to place it somewhere else, you may use a React portal**.
You can position it just like you would position a nav component by using passing the `position` prop, but you may also pass a CSS class or inline styling as props. Here is a more detailed table explaining the props:
| Prop | Type | Default | Definition |
|:---------:|:-------------------:|:---------------------------:|:---------------------------------------------------------------------------------------------:|
| position | `object` | (Same as the Nav component) | Object structured by the inline CSS `top`, `left`, `bottom`, and `right` position properties. |
| style | React.CSSProperties | `null` | Inline CSS styling for the wrapper div element of the component. |
| className | `string` | `null` | CSS class name. |
---
## License
MIT © [rmolinamir](https://github.com/rmolinamir)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc