react-icon-cloud
Version:
A React component for rendering an interactive img or word cloud on canvas
18 lines (16 loc) • 597 B
text/typescript
import React from 'react'
import {IOptions} from './options'
/**
* @param canvasProps Attributes passed to the underlying canvas element
* @param children Tags rendered using the provided renderers
* @param containerProps Attributes passed to the root div element
* @param id Should be provided when using SSR
* @param options https://www.goat1000.com/tagcanvas-options.php
*/
export type ICloud = {
canvasProps?: React.HTMLAttributes<HTMLCanvasElement>
children: React.ReactFragment
containerProps?: React.HTMLAttributes<HTMLDivElement>
id?: string | number
options?: IOptions
}