Draw link
A link whose underline follows the hand: it draws in from the side the pointer arrives on and leaves toward the side it exits, so a sweep across a sentence reads as one stroke. A faint line always marks it as a link.
This release adds scheduled exports, a faster search index and new webhook retries. Read the migration guide before upgrading.
When to use
- Links in editorial text, footers and docs prose.
- A list of links where the pointer moves across several.
When not to use
- Buttons and navigation tabs; they have their own states.
- Dense tables of links, where the movement is noise.
Installation
pnpm dlx shadcn@latest add @caliper/draw-link
Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
DrawLink
1 prop
Also accepts the native props of its root element and a ref.
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It is built on native elements, so roles and focus come from the browser.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/draw-link.mdThe index of every part is at /llms.txt.