panelui

Canvas

Component

About

A surface of dots, lines or crosses for other components to sit on, with a light that can follow the pointer.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Canvas to your project and fits it to your theme.

Code

How Canvas is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

'use client';

import { Canvas } from '@/components/ui/panel-canvas';
export default function CanvasOverview() {
  return (
    <Canvas className="h-[420px] w-full">
      <Canvas.Pattern />
      <Canvas.Spotlight />
    </Canvas>
  );
}

Dependencies

More by panelui

View all
  • Spinner

    Spinner

    7
  • Flow

    Flow

    3
  • Treemap Chart

    Treemap Chart

    1
  • Soundwave

    Soundwave

    1
  • Share

    Share

    1
  • Scatter Chart

    Scatter Chart

    1
  • Pyramid Chart

    Pyramid Chart

    1
  • Model Picker

    Model Picker

    1