rp-prompt
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

rp-prompt

This is a Liqvid plugin providing prompts to read from when recording.

Usage

/* markers */
const markers = [
  ["intro/", "1:00"],
  ["intro/second", "1:00"],
  ["intro/inline", "1:00"]
];

/* usage */
import {Prompt, Cue} from "rp-prompt";

// any attributes that are valid on <div> will be passed down
type P = Parameters<typeof Prompt>[0];

export const IntroPrompt = (props: P) => (
  <Prompt {...props}>
    <Cue on="intro/">
      This is the first thing you want to say. You can use
      <br/>
      br tags inside cues.
    </Cue>
    <Cue on="intro/second">
      This is the second thing you want to say. You can also use empty cue tags <Cue on="intro/inline"/> for small transitions without interrupting your reading flow.
    </Cue>
  </Prompt>
);

Readme

Keywords

none

Package Sidebar

Install

npm i rp-prompt

Weekly Downloads

2

Version

1.2.0

License

MIT

Unpacked Size

13.5 kB

Total Files

7

Last publish

Collaborators

  • yuri