dnd-sheet-component
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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

Examples

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

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'));

Readme

Keywords

none

Package Sidebar

Install

npm i dnd-sheet-component

Weekly Downloads

11

Version

0.1.4

License

none

Unpacked Size

70.4 kB

Total Files

42

Last publish

Collaborators

  • luisfontes19