Drawer
A neumorphic drawing canvas component with adjustable size and colour.
TSX
import { Drawer } from "looply-comp-lib";Drawer
The Drawer component provides an interactive canvas for freehand drawing.
Usage
JSX
import { Drawer } from "looply-comp-lib";
<Drawer title="Doodle" size={600} colour="#000000ff" />Props
| Prop | Type | Description |
|---|---|---|
title | string | Title displayed above the canvas |
size | number | Canvas width in pixels |
colour | string | Stroke colour for drawing |
Features
- Container styled with
neu-inset - Clear button uses
neu-btnclass - Customizable brush colour and canvas size