0.0.34 • Published 2 years ago

reveal-mdx v0.0.34

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

This library allows for the usage of the Reveal.js within either a NextJS or ReactJS framework. In short, it is a benign wrapper of (reveal.js)https://revealjs.com/ that allows you to build slides in a componentized fashion. My recommendation would be to use NextJS for the simple directory routing structure they have.

A richer library of individual reveal.js components and abstractions is still in progress. In the meantime, using the raw/vanilla HTML components is adequate.

Installation

Setting up ReactJS or NextJS

If you don't already have a ReactJS or NextJS project, you can create one:

npx create-react-app myapp
npx create-next-app myapp

Adding reveal-react

With npm:

npm install reveal-react

With yarn:

yarn add reveal-react

Usage

With ReactJS

import { RevealReact } from 'reveal-react';

export default function Component() {
  return (
    <RevealReact>
      <section>
        <h2>Title</h2>
        <p>Body</p>
      </section>
      <section>
        <h2>Title</h2>
        <p>Body</p>
      </section>
    </RevealReact> 
  )
}

With NextJS

import { RevealNext } from 'reveal-react';

export default function Component() {
  return (
    <RevealNext>
      <section>
        <h2>Title</h2>
        <p>Body</p>
      </section>
      <section>
        <h2>Title</h2>
        <p>Body</p>
      </section>
    </RevealNext> 
  )
}
0.0.34

2 years ago

0.0.33

2 years ago

0.0.32

2 years ago

0.0.31

2 years ago

0.0.30

2 years ago

0.0.29

2 years ago

0.0.28

2 years ago

0.0.27

2 years ago

0.0.26

2 years ago

0.0.25

2 years ago

0.0.24

2 years ago

0.0.23

2 years ago

0.0.22

2 years ago

0.0.21

2 years ago

0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago