@objectifthunes/whiteboard
WHITEBOARD DASHBOARD

IconButton

Icon-only Button wrapped in a Tooltip that carries the label. For dense row actions where repeated text is noise.


PREVIEW
EditDownloadDeleteDownloadingEdit (disabled)
SOURCE
import { IconButton } from '@objectifthunes/whiteboard'
import { Pencil, Trash2 } from 'lucide-react'

<IconButton icon={<Pencil size={14} />} label="Edit" onClick={edit} />
<IconButton icon={<Trash2 size={14} />} label="Delete" variant="danger" onClick={remove} />
NOTES

label does double duty: it becomes the hover/focus Tooltipand the button's aria-label, so the action stays named for assistive tech without any extra props. Icons read best at 14px.

variant, disabled, and loading pass straight through to the underlying Button in icon-only mode.