React Wrapper Component for trianglify
🇺🇸 English | 🇧🇷 Português do Brasil
Using Bun:
bun add react-trianglify trianglify
# If you're using TypeScript, add these types as `devDependencies`:
bun add --dev @types/trianglifyUsing NPM:
npm install --save react-trianglify trianglify
# If you're using TypeScript, add these types as `devDependencies`:
npm install --save-dev @types/trianglifyUsing Yarn:
yarn add react-trianglify trianglify
# If you're using TypeScript, add these types as `devDependencies`:
yarn add --dev @types/trianglifyYou must have react and trianglify already installed on your project.
PS.: If you have any problems with latest trianglify version, try to install the tested version v4.1.1.
import Trianglify from 'react-trianglify'
ReactDOM.render(<Trianglify />, $mountNode)By taking output, you can use any trianglify allowed options.
Possible output values:
canvas(default)svg
You can access react-trianglify live demo here
GPL-3.0 © Fernando Daciuk