minecraft-react
TypeScript icon, indicating that this package has built-in type declarations

0.1.73 • Public • Published

Minecraft React

Minecraft UI components for React extracted from mcraft.fun project.

pnpm i minecraft-react

demo

Usage

import { Scoreboard } from 'minecraft-react'

const App = () => {
  return (
    <Scoreboard
      open
      title="Scoreboard"
      items={[
        { name: 'Player 1', value: 10 },
        { name: 'Player 2', value: 20 },
        { name: 'Player 3', value: 30 },
      ]}
    />
  )
}

See Storybook or Storybook (Mirror link) for more examples and full components list. Also take a look at the full standalone example.

There are two types of components:

  • Small UI components or HUD components
  • Full screen components (like sign editor, worlds selector)

Package Sidebar

Install

npm i minecraft-react

Weekly Downloads

0

Version

0.1.73

License

MIT

Unpacked Size

405 kB

Total Files

136

Last publish

Collaborators

  • zardoy