npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@torc/react-fullscreen-scroller

v1.0.4

Published

A simple fullscreen scroller component built with React

Downloads

23

Readme

A simple fullscreen scroller component built with React. Made by Opentorc

Installation

npm:

npm install @torc/react-fullscreen-scroller

yarn:

yarn add @torc/react-fullscreen-scroller

Getting started with React FullScreen Scroller

Here is an example of a basic using FullScreenScroller component:

import React from "react";
import FullScreenScroller from "@torc/react-fullscreen-scroller";
import "@torc/react-fullscreen-scroller/dist/index.css";

function App() {
  <FullScreenScroller desktopBreakPoint={768} controls>
    <div>
      <p>First screen</p>
    </div>

    <div>
      <p>Second screen</p>
    </div>
  </FullScreenScroller>;
}

Edit Button

Basic features

| Action | Description | | :---------------------------------------- | ----------------------------: | | Press arrow down / page down / wheel down | Scroll to the next screen | | Press arrow top / page up / wheel up | Scroll to the previous screen | | Press 1, 2...9 | Jump to a specific screen |

Props

| Name | Type | Description | Default value | | :---------------------------- | :------ | :------------------------------------------------------------ | ------------: | | controls | boolean | Whether slide navigation will be shown | true | | hideControlsOnFirstSlide | boolean | Whether slide navigation will be hidden on the first slide | true | | desktopBreakPoint | number | The width of the device screen on which the module will work | 1024 | | containerStyle | object | The styles object for the parent container of the scroller | {} | | slideContainerStyle | object | The styles object for the container of each slide in scroller | {} | | controlsStyle.container | object | The styles object for the parent container of the controls | {} | | controlsStyle.slideNumber | object | The styles object for the current slide number | {} | | controlsStyle.activeControl | object | The styles object for the active control circle | {} | | controlsStyle.inactiveControl | object | The styles object for the inactive control circle | {} | | containerClassName | string | className for the parent container of the scroller | "" | | slideContainerClassName | string | className for the container of each slide in scroller | "" | | controlsContainerClassName | string | className for the parent container of the controls | "" | | slideNumberClassName | string | className for the current slide number | "" | | activeControlClassName | string | className for the active control circle | "" | | inactiveControlClassName | string | className for the inactive control circle | "" |