1.1.1 • Published 1 year ago

minecraft-formatted-text-react v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Minecraft Formatted Text

This component allows you to display Minecraft-style text (that follow Minecraft's section sign formatted text) within React

Features

  • TypeScript Support
  • Customize Prefix
  • Custom Colors
  • Supports ESM and CJS
  • Supports Obfuscated Text

Installation

With NPM: npm install minecraft-formatted-text-react

With Yarn: yarn add minecraft-formatted-text-react

Example

import MinecraftText from 'minecraft-formatted-text-react'
...
<MinecraftText>§lHello §cworld!</MinecraftText>

Options (Props)

NameTypeDescription
colorsColorMap?An object containing the hexcodes of the Minecraft colors.
prefixstring?The prefix of the Minecraft formatting codes (default: §)
1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago