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 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-slide-craft

v1.6.1

Published

Library for creating slides in React.

Readme

React Slide Craft

Library for creating slides in React.

Install

npm i react-slide-craft
# or
yarn add react-slide-craft
# or
pnpm add react-slide-craft

Usage

It is easy to use, just call SlideCore at the top of the application and pass an array of slides (function components) as shown below.

import { SlideCore } from "react-slide-craft"

const App = () => {
  const slides = [
    ComponentA,
    ComponentB,
  ]

  return (
    <SlideCore
      slides={slides}
    />
  )
}

Features

  • Provides a mechanism for creating slides on the Web by simply passing an array of slides
  • Slide switching with arrow keys & button switching is also possible
  • A variety of slide templates are available
  • Can be displayed in any display size with appropriate size without changing the ratio
  • When a string enclosed in | is passed to a text component, it is emphasized with the specified style
  • There is a List that adjusts the display appropriately by simply passing a string

Detailed Usage

Define base style for slides

You can define a default slide style. You can do this by passing the slide style to baseSlideStyle of SlideCore as shown below.

<SlideCore
  slides={slides}
  baseSlideStyle={
    textColor="black"
    backgroundColor="white"
    padding="20 25"
    cornerRadius={20}
  }
/>

Use text in slides

When using text in slides, please use the provided text component. If you would like to use a customized text component instead of the prepared text component, please use CustomText as shown below.

The value specified for size should be a string, passing a number.

<CustomText
  size="20"
  text="hello"
/>

Create your own slide templates

There may be use cases where you want to create your own slides in addition to the templates provided. In that case, please wrap the component using SlideBase as shown below.

[!CAUTION] When creating your own slides, be sure to wrap them in SlideBase so that the layout will not be corrupted.

const CustomSlideTemplate = ({
  children,
  title,
} : {
  children: React.ReactNode,
  title: string,
}) => {
  return (
    <SlideBase>
      <p>{title}</p>
      {children}
    </SlideBase>
  )
}

If you do not want to apply some of the base styles defined in SlideCore when applying your own slides, add objects created with genSlideObject to the array when passing to slides in SlideCore as shown below.

const App = () => {
  const slides = [
    ComponentA,
    genSlideObject(CustomSlide) // Toggle base style with options isBaseStyle
  ]

  return (
    <SlideCore
      slides={slides}
    />
  )
}

Components

Click here for more information about Components.

Core

  • SlideCore
  • SlideBase

Templates

  • CoverSlideTemplate
  • TitleAndBodySlideTemplate
  • TitleWithBgAndBodySlideTemplate

Items

  • List
  • CustomText
  • Spacer
  • Image
  • Container
  • FloatContainer
  • Row
  • Column
  • Codeblock

Texts

  • HeadlineText
  • TitleText
  • SubTTitleText
  • SectionTitleText
  • CaptionText
  • QuoteText

Credit

ReactSlideCraft library is created by HASURO.