A styled anchor; its children are the visible link text. Needs no provider, so it renders in server components.
A Markdown brief for Claude, Cursor or v0: install, setup, props and a complete example.
For going somewhere: another page, a section, a document.
Running an action? Button.
A real anchor with an underline in running text, so it is not marked by color alone.
import { TextLink } from '@idyeah/diya'Stable since 1.0.0
asChildbooleanStyles your single child element as the link instead of rendering an anchor, such as a router Link; the icons go inside it.
Default false
inlinebooleanFlows inside a sentence and inherits its type size; off, it is a standalone body-size link.
Default false
leadingIconReactNodeDecorative icon before the text; hidden from assistive tech.
trailingIconReactNodeDecorative icon after the text; hidden from assistive tech.
Also takes every native <a> attribute, such as id, aria-* or data-*.