# dnd-sheet-component

> Simple React DND Character Sheet Component (uses materialui)

Latest version **0.1.4** (published 2021-12-14) · 0 weekly downloads

## Install

```sh
npm install dnd-sheet-component
pnpm add dnd-sheet-component
yarn add dnd-sheet-component
bun add dnd-sheet-component
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2021-12-14 |
| First published | 2021-11-17 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 68.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | luisfontes19 |

## Links

- npm: https://www.npmjs.com/package/dnd-sheet-component
- Homepage: https://luisfontes19.github.io/dnd-sheet-component
- npm.io page: https://npm.io/package/dnd-sheet-component

## Dependencies (7)

- [react](https://npm.io/package/react.md) ^17.0.2
- [react-dom](https://npm.io/package/react-dom.md) ^17.0.2
- [@mui/styles](https://npm.io/package/@mui/styles.md) ^5.0.2
- [@mui/material](https://npm.io/package/@mui/material.md) ^5.0.6
- [@emotion/react](https://npm.io/package/@emotion/react.md) ^11.5.0
- [@emotion/styled](https://npm.io/package/@emotion/styled.md) ^11.3.0
- [@mui/icons-material](https://npm.io/package/@mui/icons-material.md) ^5.0.5

## Recent versions

- 0.1.4 (latest) — 2021-12-14
- 0.1.3 — 2021-12-14
- 0.1.2 — 2021-11-17
- 0.1.1 — 2021-11-17
- 0.1.0 — 2021-11-17

## README

# DHD Sheet Component

Simple React DND Character Sheet Component (uses materialui)

You can use the default browser's print option to generate a sheet PDF.

## Online Demo

You can find an online demo of the component [here](https://luisfontes19.github.io/dnd-sheet/)


## Examples

```typescript

const [chat, setChar] = useState<ICharacter>({ ...DefaultChar });
// empty param is used in case you want a sheet without the default values  (and the +0's)
// thats ideal for an empty sheet to print, to be filled manually
<CharacterSheet character={char} setCharacter={setChar} empty={false}/>
```

Or you can use the CharacterManager component, which provides a simple UI to save & manage character sheets data in localstorage

```typescript
import { CssBaseline } from '@mui/material';
import React from 'react';
import ReactDOM from 'react-dom';
import CharacterManager from './CharacterManager';
import "./Demo.css";

const Demo = () => {
  return <div className="mainContainer" style={{ backgroundColor: "#DDD" }}><CssBaseline /><CharacterManager /></div>;
};

ReactDOM.render(<Demo />, document.getElementById('root'));
```

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