react-trianglify v4.1.2
React Trianglify
React Wrapper Component for trianglify
:us: English | :brazil: Português do Brasil
Installation
Using Bun:
bun add react-trianglify trianglify
# If you're using TypeScript, add these types as `devDependencies`:
bun add --dev @types/chroma-js
Using NPM:
npm install --save react-trianglify trianglify
# If you're using TypeScript, add these types as `devDependencies`:
npm install --save-dev @types/chroma-js
Using Yarn:
yarn add react-trianglify trianglify
# If you're using TypeScript, add these types as `devDependencies`:
yarn add --dev @types/chroma-js
Dependencies
You 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
.
Usage
import Trianglify from 'react-trianglify'
ReactDOM.render(<Trianglify />, $mountNode)
Props
By taking output
, you can use any trianglify allowed options.
Possible output
values:
canvas
(default)svg
Live demo
You can access react-trianglify
live demo here
Troubleshooting
Types in TypeScript are different from runtime
If you have installed the @types/trianglify
, please remove this package.
We already have the correct types for trianglify
included in react-trianglify
.
License
MIT © Fernando Daciuk
7 days ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago