# react-prompt-viewer

> terminal style message box

Latest version **0.0.7** (published 2024-01-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-prompt-viewer
pnpm add react-prompt-viewer
yarn add react-prompt-viewer
bun add react-prompt-viewer
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2024-01-11 |
| First published | 2023-12-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 63.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | birariro |
| Keywords | react, prompt, message box, component, terminal |

## Links

- npm: https://www.npmjs.com/package/react-prompt-viewer
- Repository: https://github.com/birariro/react-prompt-viewer
- Homepage: https://github.com/birariro/react-prompt-viewer#readme
- Issues: https://github.com/birariro/react-prompt-viewer/issues
- npm.io page: https://npm.io/package/react-prompt-viewer

## Dependencies (4)

- [react](https://npm.io/package/react.md) ^18.2.0
- [react-dom](https://npm.io/package/react-dom.md) ^18.2.0
- [prop-types](https://npm.io/package/prop-types.md) ^15.8.1
- [react-scripts](https://npm.io/package/react-scripts.md) 5.0.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.7 (latest) — 2024-01-11
- 0.0.6 — 2023-12-28
- 0.0.5 — 2023-12-28
- 0.0.4 — 2023-12-28
- 0.0.3 — 2023-12-28
- 0.0.2 — 2023-12-28
- 0.0.1 — 2023-12-28

## README

# react-prompt-viewer

[![Npm Version][npm-version-image]][npm-version-url]
[![License][license-image]][license-url]

# Usage
### install
```npm i react-prompt-viewer```

### include
```javascript
import React from 'react'
import { prompt } from 'react-prompt-viewer'

class Component extends React.Component {
    
  render() {
    return <Prompt content="hello world"/>
  }
}
```



### expected

<p align="center"  >
    <img style="max-width: 500px" src="https://github.com/birariro/react-prompt-viewer/blob/master/image/helloworld.png?raw=true"/>
</p>

```javascript
<Prompt content={content}  animation='right-show' />
```
<p align="center">
    <img style="max-width: 500px" src="https://github.com/birariro/react-prompt-viewer/blob/master/image/animation.gif?raw=true"/>
</p>

### props
```javascript
<Prompt content={"hello world"} 
        width="200px" 
        title={"prompt"} 
        theme={"dark"} 
        align={"center"} 
        animation='right-show' 
        speed={15}
/>
```


[license-image]: http://img.shields.io/npm/l/react-prompt-viewer.svg
[license-url]: LICENSE
[npm-version-image]: https://img.shields.io/npm/v/react-prompt-viewer.svg
[npm-version-url]: https://www.npmjs.com/package/react-prompt-viewer

---
_Source: https://npm.io/package/react-prompt-viewer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
