WHITEBOARD DASHBOARD
ButtonLink
A link styled exactly like Button — navigation that looks like an action, without nesting a button inside an anchor.
PREVIEW
SOURCE
import { ButtonLink } from '@objectifthunes/whiteboard'
import Link from 'next/link'
<ButtonLink as={Link} href="/tracks/new">+ New track</ButtonLink>
<ButtonLink href="/docs" variant="secondary">Browse</ButtonLink>
<ButtonLink href="/danger" variant="danger">Delete all</ButtonLink>NOTES
Pass as={Link}to swap the anchor for your router's Link — every other prop is a native anchor prop and spreads through. It stays an anchor semantically: no disabled, no loading. If the action can fail or take time, it should be a Button, not navigation.