WHITEBOARD SAAS
CreatePanel
The "make a new one" card: a dashed panel with one full-width primary Button. Place it beside a board of resource cards.
PREVIEW
SOURCE
import { CreatePanel } from '@objectifthunes/whiteboard'
<CreatePanel
title="New channel"
label="Create channel"
defaultPosition={{ x: 720, y: 0 }}
width={280}
onClick={() => router.push('/channels/new')}
/>SOURCE
interface CreatePanelProps {
title: ReactNode
label: ReactNode // full-width button label
defaultPosition: { x: number; y: number }
width?: number // default 300
onClick: () => void
className?: string
}NOTES
Creation should never read as content: a resource-shaped card with a fake thumbnail invites confusion. CreatePanel keeps the panel surface and radius of every other card but swaps the border for a dashed one and holds exactly one regular full-width primary Button.
Place it next to a board of resource cards (typically to the right), not inside the grid — it stays individually draggable while grid items move with their section.