Socket
Book a DemoInstallSign in
Socket

astonish

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

astonish

The ReactJS library for creative presentations.

1.1.0
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Astonish: The React presentations library 🎉

Astonish Logo

Create presentations using ReactJS and your creative developer mind.

  • User friendly, easy to use 🍰
  • Fully customizable 🦋
  • Built-in theme support 💅🏼
  • The full power of the web inside your presentation 💪
  • Built-in Preview component 🖌️
  • Built-in ArrowControls 🎮
  • Built-in FullScreen with Focus ⛶
  • Pre-built arrow keys support ⌨
  • Everything is Optional and Tree Shakable 🌴

Screenshot

Screenshot

Getting started

To get started in the fastest way possible, use the cli tool create-astonish-presentation

Create a starter presentation with typescript and yarn

    npx create-astonish-presentation my-presentation --typescript --yarn

Create a demo presentation

    npx create-astonish-presentation my-presentation --template demo

Usage

  • Wrap your presentation with the Astonish component
  • Wrap each Slide with the Slide component, ** pay attention that the Slide component must be directly under Astonish **
  • Optionally use built-in components like Preview, ArrowControls, FullScreen, and SlideNumber
  • If you want to add a component shared between all other slides, use Shared component
import {
  ArrowControls,
  Astonish,
  FullScreen,
  Preview,
  Shared,
  Slide,
  SlideNumber,
} from "astonish";

function Presentation() {
  return (
    <Astonish
      slideSx={{
        display: "flex",
        flexDirection: "column",
        justifyContent: "center",
        alignItems: "center",
        fontSize: "28px",
        fontFamily: "Arial, Helvetica, Ubuntu, sans-serif",
      }}
    >
        <Slide>
            First Slide!
        </Slide>

        <Slide>
            Astonish is cool 😎
        </Slide>

        <Shared sx={{ fontSize: "24px", color: "slategray", margin: 2 }}>
            I will be visible in all slides
        </Shared>
        
        <SlideNumber />
        <Preview />
        <ArrowControls />
        <FullScreen />
    </Astonish>
  );
}

export default Presentation;

API Docs

Visit the GitHub Wiki Page to see components docs.

Feature Requests

Feel free to open an issue for any feature request!

FAQs

Package last updated on 02 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.