widgets Component – <Canvas>

const Canvas: LiveComponent<CanvasProps>

Props

Other

canvas
HTMLCanvasElement
format?
GPUTextureFormat
depthStencil?
GPUTextureFormat
backgroundColor?
GPUColor
colorSpace?
ColorSpace
colorInput?
ColorSpace
samples?
number
width
number
height
number
pixelRatio?
number

Other

children?

| false
| LiveElement<ArrowFunction>[]
| ReactElementInterop
| DeferredCall<any>

Source

packages / webgpu / src / components / canvas.ts

menu
format_list_numbered